Skip to content

Commit

Permalink
removed require
Browse files Browse the repository at this point in the history
  • Loading branch information
soliton4 committed Jul 15, 2015
1 parent 55c3054 commit 2f627ed
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Decoder/js/avc.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion Decoder/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@
f1 = open(os.path.join("..", "templates", 'DecoderPre.js'));
f.write(f1.read());
f2 = open(os.path.join(JS_DIR, 'avc.js'));
f.write(f2.read());
jscont = f2.read();
jscont = jscont.replace('require(', '(null)(');
jscont = jscont.replace('typeof require', 'typeof null');
f.write(jscont);
f3 = open(os.path.join("..", "templates", 'DecoderPost.js'));
f.write(f3.read());

Expand Down
18 changes: 9 additions & 9 deletions Player/Decoder.js

Large diffs are not rendered by default.

0 comments on commit 2f627ed

Please sign in to comment.