Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Scope our script insertion in an IIFE #573

Merged
merged 1 commit into from
Jul 26, 2016

Conversation

jacobwgillespie
Copy link
Member

Google's uglifier just named a global variable js, which happens to conflict with our previous script injection script (which unintentionally created a global variable also named js).

This PR wraps our script injection in an IIFE and no longer pollutes the global namespace.

Fixes #572

/cc @radiant-player/radiant-player-mac

@chrismou
Copy link
Member

chrismou commented Jul 26, 2016

Not able to test right now, but it looks critical so I'll take your word that it all works 😉

:shipit:

@jacobwgillespie jacobwgillespie merged commit 56ab2f9 into master Jul 26, 2016
@jacobwgillespie jacobwgillespie deleted the fix-js-injection-scope branch July 26, 2016 20:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants