We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a6ac87 commit 55ebdbdCopy full SHA for 55ebdbd
1 file changed
lib/runtime/AutoPublicPathRuntimeModule.js
@@ -56,7 +56,7 @@ class AutoPublicPathRuntimeModule extends RuntimeModule {
56
"if(scripts.length) {",
57
Template.indent([
58
"var i = scripts.length - 1;",
59
- "while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src;"
+ "while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;"
60
]),
61
"}"
62
0 commit comments