Skip to content

Commit

Permalink
Merge pull request #747 from boboldehampsink/fix-injectscriptevent
Browse files Browse the repository at this point in the history
Fixed “Identifier 'injectScriptEvent' has already been declared”
  • Loading branch information
bencroker authored Dec 6, 2024
2 parents 8676256 + 7c96060 commit 19d2853
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/resources/js/blitzInjectScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
const injectScriptEvent = '{injectScriptEvent}';
var injectScriptEvent = '{injectScriptEvent}';
if (injectScriptEvent === 'load') {
window.addEventListener('load', injectElements, { once: true });
}
Expand Down
2 changes: 1 addition & 1 deletion src/resources/js/blitzInjectScript.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// The event name will be replaced with the `injectScriptEvent` config setting.
const injectScriptEvent = '{injectScriptEvent}';
var injectScriptEvent = '{injectScriptEvent}';
// @ts-ignore
if (injectScriptEvent === 'load') {
window.addEventListener('load', injectElements, {once: true});
Expand Down

0 comments on commit 19d2853

Please sign in to comment.