未捕获的TypeError:n.className.indexOf不是MyScript Javascript中的函数

问题描述

我在Angular中使用 我的脚本交互式墨水 。但是,每当我运行我的应用程序时,都会出现一个控制台错误,如下所述。

Uncaught TypeError: n.className.indexOf is not a function
    at content_script.js:1
    at Array.every (<anonymous>)
    at e.domSensor.shouldIgnoreMutations (content_script.js:1)
    at e.shouldNotifyChangesForMutations (content_script.js:8)
    at e.t.onMutations (content_script.js:1)
    at MutationObserver.<anonymous> (content_script.js:1)

如何解决错误

链接到官方文档:MyScript Developer Guide

代码

ngAfterViewInit() : void {
    try{

      this.editor = iink.register(this.domEditor.nativeElement,{
      recognitionParams: {
        type: 'TEXT',protocol: 'WEBSOCKET',apiVersion: 'V4',server: {
          scheme: 'https',host: 'webdemoapi.myscript.com',applicationKey: '',//AppID
          hmacKey: '',//H MacID
          maxRetryCount: 10
        },}
    });
  }
  catch(err){
    console.log("exception");
  }
  };

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)