Skip to content

Commit

Permalink
[TIMOB-25769] Fix loading of commonjs modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Mathews committed Feb 14, 2018
1 parent dc5f53a commit c5cc628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/templates/build/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void onCreate()
try {
runtime.addExternalCommonJsModule(
"<%- module.manifest.moduleid %>",
(Class<KrollExternalModule>) Class.forName(className));
(Class<KrollSourceCodeProvider>) Class.forName(className));
} catch (Throwable ex) {
Log.e(TAG, "Failed to add external CommonJS module: " + className);
if ((ex instanceof RuntimeException) == false) {
Expand Down

0 comments on commit c5cc628

Please sign in to comment.