1
0
mirror of https://gitee.com/bitdance-team/chrome-extension synced 2025-10-07 08:25:15 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

增加chrome-extension判断

This commit is contained in:
2022-02-12 01:44:20 +08:00
parent 29fc6921ab
commit cb5e23b0f4

View File

@@ -162,6 +162,8 @@ $(function() {
var protocol, isSettingPage = true; var protocol, isSettingPage = true;
if(/^chrome:\/\/.*$/.test(url)) { if(/^chrome:\/\/.*$/.test(url)) {
protocol = "chrome://" protocol = "chrome://"
} else if(/^chrome-extension:\/\/.*$/.test(url)) {
protocol = "chrome-extension://"
} else if(/^edge:\/\/.*$/.test(url)) { } else if(/^edge:\/\/.*$/.test(url)) {
protocol = "edge://" protocol = "edge://"
} else { } else {