谷歌瀏覽器插件擴展引起的報錯 Unchecked runtime.lastError: The message port closed before a response was received.

Unchecked runtime.lastError: The message port closed before a response was received.

7Error handling response: TypeError: Cannot read property 'bPlugin' of undefined
    at <URL>

今天一個錯誤折騰了我很久,Unchecked runtime.lastError: The message port closed before a response was received.
一開始以爲是代碼出問題了,看了半天發現並不是,Google了一下,發現是迅雷,插件擴展造成的,
把它關閉之後就好了鬱悶啊,坑了我好久,大家注意一下,也有可能不是迅雷,主要原因可能還是插件寫法問題,異步未結束就開始了新的導致的,加一段這個就行 if(chrome.runtime.lastError){},所以其他插件也有可能代碼不嚴謹、規範,同樣也會報這樣的錯誤,
谷歌瀏覽器 Unchecked runtime.lastError: The message port closed before a response was received.,谷歌瀏覽器

谷歌瀏覽器 Unchecked runtime.lastError: The message port closed before a response was received.

更多閱讀:

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章