Created
February 13, 2020 22:04
-
-
Save KTruong008/21d20ed67e1d07d85de86954519d5ef0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app.middleware.js | |
const buildScriptTagSrcUrl = (): string => { | |
return process.env.SCRIPT_TAG_URL || ''; | |
}; | |
export const initializeApp = async (ctx) => { | |
... | |
await createScriptTag( | |
buildScriptTagSrcUrl(), | |
SCRIPT_TAG_DISPLAY_SCOPE.ONLINE_STORE, | |
shop, | |
) | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment