Selaa lähdekoodia

fix injection thanks to Seb

Cedric Guillemet 6 vuotta sitten
vanhempi
commit
d6e71c1762
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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()) {