浏览代码

fix injection thanks to Seb

Cedric Guillemet 6 年之前
父节点
当前提交
d6e71c1762
共有 1 个文件被更改,包括 1 次插入1 次删除
  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") {
         if (typeof recastInjection === "function") {
             recastInjection(this.bjsRECAST);
             recastInjection(this.bjsRECAST);
         } else {
         } else {
-            this.bjsRECAST = recastInjection();
+            this.bjsRECAST = recastInjection;
         }
         }
 
 
         if (!this.isSupported()) {
         if (!this.isSupported()) {