Skip to content

Commit

Permalink
fix(android): ignore additional require argument
Browse files Browse the repository at this point in the history
  • Loading branch information
janvennemann committed Dec 6, 2019
1 parent aedd2aa commit 4ea6f31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions android/runtime/common/src/js/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,8 @@ Module.prototype._runScript = function (source, filename) {
var self = this,
url = 'app://' + filename;

function require(path, context) {
return self.require(path, context);
function require(path) {
return self.require(path);
}
require.main = Module.main;

Expand Down

0 comments on commit 4ea6f31

Please sign in to comment.