@micromag/viewer 0.3.680 → 0.3.681
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/es/index.js +8 -5
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -2667,12 +2667,15 @@ function WebViewContainer(_ref) {
|
|
|
2667
2667
|
setPlaying(true);
|
|
2668
2668
|
}
|
|
2669
2669
|
}
|
|
2670
|
-
if (trackingEnabled) {
|
|
2671
|
-
trackEvent('viewer_webview', opened ? 'open' : 'close', currentUrl, {
|
|
2672
|
-
source: source
|
|
2673
|
-
});
|
|
2674
|
-
}
|
|
2675
2670
|
}, [opened, trackEvent]);
|
|
2671
|
+
useEffect(function () {
|
|
2672
|
+
if (!trackingEnabled || currentUrl === null) {
|
|
2673
|
+
return;
|
|
2674
|
+
}
|
|
2675
|
+
trackEvent('viewer_webview', opened ? 'open' : 'close', currentUrl, {
|
|
2676
|
+
source: source
|
|
2677
|
+
});
|
|
2678
|
+
}, [trackingEnabled, currentUrl, opened]);
|
|
2676
2679
|
var keyboardShortcuts = useMemo(function () {
|
|
2677
2680
|
return {
|
|
2678
2681
|
escape: function escape() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/viewer",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.681",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"access": "public",
|
|
93
93
|
"registry": "https://registry.npmjs.org/"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "5a5e8f94a12b7291d74b5d8e19b6eeecacf721d6"
|
|
96
96
|
}
|