学无先后,达者为师

网站首页 编程语言 正文

关于mv3 - Uncaught TypeError: Cannot read properties of undefined (reading ‘getDetails‘)

作者:slongzhang_ 更新时间: 2022-07-11 编程语言

chrome mv3已经废除了chrome.app.getDetails

  • 正式弃用并移除 chrome.app.getDetails 以便调用它会显示“not a function”错误
  • 在内部为 getManifest 命名,例如 chrome.app.getDetails = chrome.runtime.getManifest
  • 修复崩溃 将程序里chrome.app.getDetails 替换成 chrome.runtime.getManifest即可

原文链接:https://blog.csdn.net/qq_35606400/article/details/125517595

栏目分类
最近更新