Explorar o código

fix injection thanks to Seb

Cedric Guillemet %!s(int64=6) %!d(string=hai) anos
pai
achega
d6e71c1762
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Navigation/Plugins/recastJSPlugin.ts

+ 1 - 1
src/Navigation/Plugins/recastJSPlugin.ts

@@ -38,7 +38,7 @@ export class RecastJSPlugin implements INavigationEnginePlugin {
         if (typeof recastInjection === "function") {
             recastInjection(this.bjsRECAST);
         } else {
-            this.bjsRECAST = recastInjection();
+            this.bjsRECAST = recastInjection;
         }
 
         if (!this.isSupported()) {