Skip to content

Wrap client script in IIFE#343

Merged
laymonage merged 1 commit into
mainfrom
iife
Jan 12, 2022
Merged

Wrap client script in IIFE#343
laymonage merged 1 commit into
mainfrom
iife

Conversation

@laymonage

Copy link
Copy Markdown
Member

https://en.wikipedia.org/wiki/Immediately_invoked_function_expression

This is done to prevent declaring variables in the global scope.

@vercel

vercel Bot commented Jan 12, 2022

Copy link
Copy Markdown

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/giscus/giscus/CTZLo15kw3DeZ6T68fQzdEhNLSJt
✅ Preview: https://giscus-git-iife-giscus.vercel.app

This is done to prevent declaring variables in the global scope.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant