@shuvi/error-overlay 1.0.62 → 1.0.63
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/lib/client.js +6 -0
- package/package.json +3 -3
- package/umd/index.js +6 -0
package/lib/client.js
CHANGED
|
@@ -123,6 +123,12 @@ function applyStyles(element, styles) {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
function update() {
|
|
126
|
+
// extensions does not support inline scripts, error overlay will be blank and block interaction in extensions
|
|
127
|
+
// so we need to remove it
|
|
128
|
+
// protocols list of extensions: moz-extension|chrome-extension|extension|safari-extension|safari-web-extension
|
|
129
|
+
if (window.location.protocol.endsWith('extension:')) {
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
126
132
|
// Loading iframe can be either sync or async depending on the browser.
|
|
127
133
|
if (isLoadingIframe) {
|
|
128
134
|
// Iframe is loading.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shuvi/error-overlay",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.63",
|
|
4
4
|
"main": "umd/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@babel/code-frame": "7.14.5",
|
|
26
|
-
"@shuvi/shared": "1.0.
|
|
27
|
-
"@shuvi/toolpack": "1.0.
|
|
26
|
+
"@shuvi/shared": "1.0.63",
|
|
27
|
+
"@shuvi/toolpack": "1.0.63",
|
|
28
28
|
"anser": "1.4.9",
|
|
29
29
|
"data-uri-to-buffer": "3.0.1",
|
|
30
30
|
"html-entities": "2.3.2",
|
package/umd/index.js
CHANGED
|
@@ -884,6 +884,12 @@
|
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
886
|
function update() {
|
|
887
|
+
// extensions does not support inline scripts, error overlay will be blank and block interaction in extensions
|
|
888
|
+
// so we need to remove it
|
|
889
|
+
// protocols list of extensions: moz-extension|chrome-extension|extension|safari-extension|safari-web-extension
|
|
890
|
+
if (window.location.protocol.endsWith('extension:')) {
|
|
891
|
+
return;
|
|
892
|
+
}
|
|
887
893
|
// Loading iframe can be either sync or async depending on the browser.
|
|
888
894
|
if (isLoadingIframe) {
|
|
889
895
|
// Iframe is loading.
|