Javascript Windows正常,因此RO将运行
我正在Google Chrome上的localhost:8080上运行Vue应用程序,每当我刷新页面时,我都会看到: 窗口正常,因此RO将运行 其次是: 此窗口已禁用RO 自动登录到我的控制台 我已经在谷歌上搜索过了,唯一的结果似乎与Windows操作系统有关,但如果相关的话,我正在使用Mac电脑 为什么会出现这些控制台日志 编辑: 以下创建日志消息的函数似乎是由WebPack生成的。这似乎与Chrome有关,因为在Firefox中运行时不会显示这些消息 index.js中的此函数似乎抛出了第一个日志:Javascript Windows正常,因此RO将运行,javascript,google-chrome,google-chrome-extension,Javascript,Google Chrome,Google Chrome Extension,我正在Google Chrome上的localhost:8080上运行Vue应用程序,每当我刷新页面时,我都会看到: 窗口正常,因此RO将运行 其次是: 此窗口已禁用RO 自动登录到我的控制台 我已经在谷歌上搜索过了,唯一的结果似乎与Windows操作系统有关,但如果相关的话,我正在使用Mac电脑 为什么会出现这些控制台日志 编辑: 以下创建日志消息的函数似乎是由WebPack生成的。这似乎与Chrome有关,因为在Firefox中运行时不会显示这些消息 index.js中的此函数似乎抛出了第一
function initRo() {
if (problematicChromeVersion === undefined) {
problematicChromeVersion = isProblematicChromeVersion();
}
return new Promise((resolve, reject) => {
$(document)
.ready(function () {
return utils.getCurrentWindow()
.then((windowResp) => {
if (windowResp.window.type !== 'normal') {
throw(`window is ${windowResp.window.type} so RO wont run!`)
}
console.log(`window is ${windowResp.window.type} so RO will run!`);
isRoAllowedOnPage = windowResp.isAllowed;
if (!isRoAllowedOnPage) {
throw DISABLED_RO_MSG;
}
})
.then(() => initExtension(isRoAllowedOnPage))
.then(() => initButtons())
.then(() => initLoader(isRoAllowedOnPage))
.then(() => initIFrame())
.then(() => resolve())
.catch(function (err) {
reject(err);
})
});
});
}
此函数将抛出第二条日志消息:
function chromeOnChangeListener(request, sender, response) {
if (request.type === 'onUpdated' && tabUrl !== request.tabUrl) {
tabUrl = request.tabUrl || tabUrl;
resolveWhenReady.then(function () {
pageChanged();
}).catch(err => {
if (err === DISABLED_RO_MSG) {
console.log(err);
}
else {
console.error(err);
}
})
}
if (request.type === 'open') {
if (EXTENSION_ELEMENT && !(EXTENSION_ELEMENT.hasClass(TWENTY_PCT_CLASS) || EXTENSION_ELEMENT.hasClass(EIGHTY_PCT_CLASS))) {
buttonActions.shrink(true);
}
else if (!EXTENSION_ELEMENT && !isRoAllowedOnPage) {
isRoAllowedOnPage = true;
openFromClosed(request.tabUrl);
}
}
if (request.type === 'browserIconClicked') {
if (EXTENSION_ELEMENT) {
if (EXTENSION_ELEMENT.hasClass(MINIMIZED_CLASS)) {
buttonActions.shrink(true);
}
else {
buttonActions.minimize(true);
}
}
else {
//EXTENSION_ELEMENT doesn't exist, so we'll need to open from closed state.
isRoAllowedOnPage = true;
openFromClosed(request.tabUrl);
}
}
}
这是一条从ZoomInfo伸出浏览器扩展插件记录的消息。事实上,它记录在每个网页上,并且不是特定于Vue的。删除扩展将删除这些消息。怀疑它的windows-请提供一个我不确定如何删除的窗口。在这种情况下,我没有编写控制台日志行代码,它似乎来自网页包中的某个地方。任何登录到控制台的东西都会在右边包含一个链接,指向生成它的代码行。尽我所能更新该链接。我保证该消息不是来自网页,而是来自捆绑的其他内容。首先,Webpack不使用jQuery