Skip to content

Commit 55ebdbd

Browse files
fix: improve auto publicPath detection
1 parent 1a6ac87 commit 55ebdbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/runtime/AutoPublicPathRuntimeModule.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class AutoPublicPathRuntimeModule extends RuntimeModule {
5656
"if(scripts.length) {",
5757
Template.indent([
5858
"var i = scripts.length - 1;",
59-
"while (i > -1 && !scriptUrl) scriptUrl = scripts[i--].src;"
59+
"while (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;"
6060
]),
6161
"}"
6262
]),

0 commit comments

Comments
 (0)