Skip to content

Commit 7faef7b

Browse files
authored
Fix starter template to run properly when cloned.
1 parent 11e5b47 commit 7faef7b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const options: Options = {
1616
SrcDefer: true,
1717
ProgressBar: true,
1818
Debug: App.getUrlParameter("debug") == "true" ? true : false,
19-
onLoad: () => customScript(),
19+
onLoad: () => customScript(App),
2020
onResize: () => console.log("Starter Theme Window Resized"),
2121
};
2222
new App(options);

src/scripts/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export const customScript = function () {
1+
export const customScript = function (App) {
22
console.log("ENGrid client scripts are executing");
33
// Add your client scripts here
44

5-
App.setBodydata("client-js-loading", "finished");
5+
App.setBodyData("client-js-loading", "finished");
66
};

0 commit comments

Comments
 (0)