minor fixes
This commit is contained in:
parent
47b1bc68e0
commit
280e9cfa62
@ -53,7 +53,6 @@ class UWServer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
scheduleGc(timeout) {
|
scheduleGc(timeout) {
|
||||||
console.log("scheduling gcframe")
|
|
||||||
if (this._gctimeout) {
|
if (this._gctimeout) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -122,19 +121,22 @@ class UWServer {
|
|||||||
|
|
||||||
async gcFrames() {
|
async gcFrames() {
|
||||||
// does "garbage collection" on frames
|
// does "garbage collection" on frames
|
||||||
|
|
||||||
let frames;
|
let frames;
|
||||||
|
|
||||||
if (BrowserDetect.firefox) {
|
if (BrowserDetect.firefox) {
|
||||||
frames = await browser.webNavigation.getAllFrames({tabId: this.currentTabId});
|
frames = await browser.webNavigation.getAllFrames({tabId: this.currentTabId});
|
||||||
} else if (BrowserDetect.chrome) {
|
} else if (BrowserDetect.chrome) {
|
||||||
frames = await new Promise( (resolve, reject) => {
|
frames = await new Promise( (resolve, reject) => {
|
||||||
chrome.webNavigation.getAllFrames({tabId: this.currentTabId}, (data) => resolve(data) );
|
chrome.webNavigation.getAllFrames({tabId: this.currentTabId}, (data) => {resolve(data); return true});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let key in this.videoTabs[this.currentTabId].frames) {
|
if (this.videoTabs[this.currentTabId]) {
|
||||||
if (! frames.find(x => x.frameId == key)) {
|
for (let key in this.videoTabs[this.currentTabId].frames) {
|
||||||
delete this.videoTabs[this.currentTabId].frames[key];
|
if (! frames.find(x => x.frameId == key)) {
|
||||||
|
delete this.videoTabs[this.currentTabId].frames[key];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>ultravidify-vue - Options</title>
|
<title>Ultravidify - Options</title>
|
||||||
<link rel="stylesheet" href="options.css">
|
<link rel="stylesheet" href="options.css">
|
||||||
<% if (NODE_ENV === 'development') { %>
|
<% if (NODE_ENV === 'development') { %>
|
||||||
<!-- Load some resources only in development environment -->
|
<!-- Load some resources only in development environment -->
|
||||||
|
@ -235,6 +235,8 @@ export default {
|
|||||||
this.performance[key] = message.message[key];
|
this.performance[key] = message.message[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
},
|
},
|
||||||
loadFrames(videoTab) {
|
loadFrames(videoTab) {
|
||||||
if (videoTab.selected) {
|
if (videoTab.selected) {
|
||||||
|
@ -5598,11 +5598,6 @@ web-ext-types@^2.1.0:
|
|||||||
resolved "https://registry.yarnpkg.com/web-ext-types/-/web-ext-types-2.3.0.tgz#3d7e62d82f272e3d6056be2e0f92e8036651f7e0"
|
resolved "https://registry.yarnpkg.com/web-ext-types/-/web-ext-types-2.3.0.tgz#3d7e62d82f272e3d6056be2e0f92e8036651f7e0"
|
||||||
integrity sha512-a0tUp0fQXUgGH53TuXienngvqSkiNs3xDpSIA4U5+c+AfFiniNh+YMVrVcLgFTIXRyIeFkpYZe8IzwiuULomAg==
|
integrity sha512-a0tUp0fQXUgGH53TuXienngvqSkiNs3xDpSIA4U5+c+AfFiniNh+YMVrVcLgFTIXRyIeFkpYZe8IzwiuULomAg==
|
||||||
|
|
||||||
webextension-polyfill@^0.3.1:
|
|
||||||
version "0.3.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/webextension-polyfill/-/webextension-polyfill-0.3.1.tgz#fab2aed917a713a5d8221e41febad81c5d0b080f"
|
|
||||||
integrity sha512-ISB42vlgMyM7xE1u6pREeCqmmXjLsYu/nqAR8Dl/gIAnylb+KpRpvKbVkUYNFePhhXn0Obkkc3jasOII9ztUtg==
|
|
||||||
|
|
||||||
webpack-chrome-extension-reloader@^0.8.3:
|
webpack-chrome-extension-reloader@^0.8.3:
|
||||||
version "0.8.3"
|
version "0.8.3"
|
||||||
resolved "https://registry.yarnpkg.com/webpack-chrome-extension-reloader/-/webpack-chrome-extension-reloader-0.8.3.tgz#cbe87829d026f23f85e68e0d929e9815f6ccd532"
|
resolved "https://registry.yarnpkg.com/webpack-chrome-extension-reloader/-/webpack-chrome-extension-reloader-0.8.3.tgz#cbe87829d026f23f85e68e0d929e9815f6ccd532"
|
||||||
|
Loading…
Reference in New Issue
Block a user