LocalHost + AngularJS & ngRoute + AdBlock + Chrome = 错误
LocalHost + AngularJS & ngRoute + AdBlock + Chrome = error
Uncaught SyntaxError: Identifier 'chunkSize' has already been declared
at VM[...] adblock-datacollection-contentscript.js:1
(anonymous) @ VM[...] adblock-datacollection-contentscript.js:1
如果我使用 ngRoute 并单击具有属性 href="#!something" 的任何按钮 [ul>li>a],它总是会在控制台中产生错误(当我的网站 运行 在本地主机上时(Apache服务器)并在 chrome 中使用任何广告拦截器打开。)
它指向文件:https://gist.github.com/Mlocik97-issues/4d5e392a8cb1b547a25e2a55206620ce
Adblock by BetaFish v3.31.2 [ID: gighmmpiobklfepjocnamgkkbiglidom]
Chrome 67.0.3396.87
AngularJS & ngRoute: 1.7.2
-
but:
if I open my website in firefox (over localhost) -> no error
if I open my website in chrome (not over localhost) -> no error
if I click on normal link -> no error
if I disable adblock or remove adblock-datacollection-contentscript.js file -> no error
当我的页面在本地主机上时,如何在 chrome 中使用 adblock 修复它?
我的代码中没有变量或常量 "chunkSize"。
感谢您的回答,对不起我的英语不好。
已解决,这是 adblock 中的错误。
Uncaught SyntaxError: Identifier 'chunkSize' has already been declared
at VM[...] adblock-datacollection-contentscript.js:1
(anonymous) @ VM[...] adblock-datacollection-contentscript.js:1
如果我使用 ngRoute 并单击具有属性 href="#!something" 的任何按钮 [ul>li>a],它总是会在控制台中产生错误(当我的网站 运行 在本地主机上时(Apache服务器)并在 chrome 中使用任何广告拦截器打开。)
它指向文件:https://gist.github.com/Mlocik97-issues/4d5e392a8cb1b547a25e2a55206620ce
Adblock by BetaFish v3.31.2 [ID: gighmmpiobklfepjocnamgkkbiglidom]
Chrome 67.0.3396.87
AngularJS & ngRoute: 1.7.2
-
but:
if I open my website in firefox (over localhost) -> no error
if I open my website in chrome (not over localhost) -> no error
if I click on normal link -> no error
if I disable adblock or remove adblock-datacollection-contentscript.js file -> no error
当我的页面在本地主机上时,如何在 chrome 中使用 adblock 修复它?
我的代码中没有变量或常量 "chunkSize"。
感谢您的回答,对不起我的英语不好。
已解决,这是 adblock 中的错误。