Skip to content
This repository has been archived by the owner on Apr 25, 2022. It is now read-only.

[BUG] chrome.extension.getURL #285

Open
Crystal-RainSlide opened this issue Feb 7, 2022 · 2 comments
Open

[BUG] chrome.extension.getURL #285

Crystal-RainSlide opened this issue Feb 7, 2022 · 2 comments

Comments

@Crystal-RainSlide
Copy link

Crystal-RainSlide commented Feb 7, 2022

错误描述

extension.getURL() 已废弃,需改为 runtime.getURL()

错误提示和日志内容

Error: Please use $(ref:runtime.getURL).
update() /src/background.js:1

出现位置

update() 函数:

protected update() {

以及 start.ts 中的一处:

get(chrome.extension.getURL('src/mooc.js'), function (source: string) {

使用环境

  • Firefox

其它信息

extensionruntime 这俩 API 真乱啊…

@CodFrm
Copy link
Owner

CodFrm commented Feb 7, 2022

浏览器版本是多少?我Firefox没出现,不过知道这个API是废弃了

image

@Crystal-RainSlide
Copy link
Author

Crystal-RainSlide commented Feb 7, 2022

@CodFrm 在浏览器控制台里;按 Ctrl + Shift + J 可以打开

关掉不会 clear,测试时随便关

同时会看到 Firefox 本体和其他拓展各种离谱的报错

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants