@capillarytech/creatives-library 6.12.11 → 6.12.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -106,14 +106,14 @@ export class Cap extends React.Component { // eslint-disable-line react/prefer-s
|
|
|
106
106
|
//locale = 'zh';
|
|
107
107
|
console.log('Setting final locale as', locale);
|
|
108
108
|
moment.locale(locale);
|
|
109
|
+
logNewTab(BugsnagClient);
|
|
109
110
|
window.addEventListener('storage', this.handleStorageChange, false);
|
|
110
111
|
document.addEventListener(
|
|
111
112
|
'visibilitychange',
|
|
112
113
|
this.handleVisibilityChange,
|
|
113
114
|
false,
|
|
114
115
|
);
|
|
115
|
-
window.addEventListener('
|
|
116
|
-
window.addEventListener('pagehide', tabBeforeUnloadEventHandler, false);
|
|
116
|
+
window.addEventListener('unload', tabBeforeUnloadEventHandler, false);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
componentWillReceiveProps(nextProps) {
|
|
@@ -167,22 +167,14 @@ export class Cap extends React.Component { // eslint-disable-line react/prefer-s
|
|
|
167
167
|
this.handleVisibilityChange,
|
|
168
168
|
false,
|
|
169
169
|
);
|
|
170
|
+
|
|
170
171
|
window.removeEventListener(
|
|
171
|
-
'
|
|
172
|
-
this.
|
|
173
|
-
false,
|
|
174
|
-
);
|
|
175
|
-
window.removeEventListener(
|
|
176
|
-
'pagehide',
|
|
177
|
-
tabBeforeUnloadEventHandler,
|
|
172
|
+
'unload',
|
|
173
|
+
this.tabBeforeUnloadEventHandler,
|
|
178
174
|
false,
|
|
179
175
|
);
|
|
180
176
|
}
|
|
181
177
|
|
|
182
|
-
tabOnloadEventHandler = () => {
|
|
183
|
-
logNewTab(BugsnagClient);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
178
|
setDimensionData() {
|
|
187
179
|
const userGtmData = this.getUserGtmData();
|
|
188
180
|
Object.values(userGtmData).forEach((value, index) => {
|
|
@@ -2666,8 +2666,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
2666
2666
|
if (this.props.location.query.type === 'embedded' && this.props.location.query.module === 'library' && !this.props.getDefaultTags) {
|
|
2667
2667
|
tags = this.props.supportedTags;
|
|
2668
2668
|
}
|
|
2669
|
-
const
|
|
2670
|
-
const showTestAndPreview = !showImageSelectionBox && getDefaultTags === 'outbound';
|
|
2669
|
+
const showTestAndPreview = getDefaultTags === 'outbound';
|
|
2671
2670
|
return (
|
|
2672
2671
|
<div className="email-container">
|
|
2673
2672
|
<CapSpin spinning={isLoading}>
|