Skip to content

Commit 6c9ad2d

Browse files
committed
maint(pat-inject): Minor code optimization.
1 parent 3718361 commit 6c9ad2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pat/inject/inject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,8 @@ const inject = {
498498
return;
499499
}
500500
let url = cfg.url;
501-
const glue = url.indexOf("?") > -1 ? "&" : "?";
502501
if (cfg.params) {
502+
const glue = url.indexOf("?") > -1 ? "&" : "?";
503503
url = `${url}${glue}${cfg.params}`;
504504
}
505505
history.pushState({ url: url }, "", url);

0 commit comments

Comments
 (0)