mirror of
https://gitee.com/bitdance-team/chrome-extension
synced 2025-10-07 08:25:15 +08:00
增加chrome-extension判断
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user