Skip to content

Commit

Permalink
Fix injector script
Browse files Browse the repository at this point in the history
- Missing document pass-through
- Remove unnecessary line
  • Loading branch information
ctsstc committed Oct 3, 2019
1 parent 7fee859 commit 6a9fbfd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions injector.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// IIFE
const scriptTag = document.createElement('script');
(document => {
const source = 'https://cdn.jsdelivr.net/gh/ctsstc/a-better-canvas@master/canvas%20discussion%20enhancer.js';

Expand All @@ -12,4 +11,4 @@ const scriptTag = document.createElement('script');
return {
execute
};
})().execute();
})(document).execute();

0 comments on commit 6a9fbfd

Please sign in to comment.