remove nonexistent help button event
This commit is contained in:
parent
352d4ae26f
commit
86329e376d
1 changed files with 6 additions and 6 deletions
|
@ -38,7 +38,7 @@ class Page_Popup extends Page {
|
||||||
// Get all the data to be used here.
|
// Get all the data to be used here.
|
||||||
let DATA = {
|
let DATA = {
|
||||||
"status": await global.read([`sites`, this[`ref`], `status`], -1)
|
"status": await global.read([`sites`, this[`ref`], `status`], -1)
|
||||||
}
|
};
|
||||||
|
|
||||||
// Update all other data.
|
// Update all other data.
|
||||||
this[`status`] = (DATA[`status`] != null)
|
this[`status`] = (DATA[`status`] != null)
|
||||||
|
@ -62,8 +62,9 @@ class Page_Popup extends Page {
|
||||||
let PAGES = {
|
let PAGES = {
|
||||||
"results": "results.htm",
|
"results": "results.htm",
|
||||||
"loading": "load.htm",
|
"loading": "load.htm",
|
||||||
|
"OOBE": "hello.htm",
|
||||||
"error": "error.htm"
|
"error": "error.htm"
|
||||||
}
|
};
|
||||||
|
|
||||||
// Prepare all the necessary data.
|
// Prepare all the necessary data.
|
||||||
this.update().then(() => {
|
this.update().then(() => {
|
||||||
|
@ -96,8 +97,8 @@ class Page_Popup extends Page {
|
||||||
if (this.elements[`frame`]) {
|
if (this.elements[`frame`]) {
|
||||||
this.switch();
|
this.switch();
|
||||||
|
|
||||||
// Call for scraping of data if global data does not indicate automatic scraping or if data doesn't exist.
|
// Call for scraping of data if global data does not indicate automatic scraping or if data doesn't exist.
|
||||||
if (!await global.read([`settings`, `behavior`, `autoRun`]) && DATA[`status`] == null) {
|
if (!await global.read([`settings`, `behavior`, `autoRun`]) && this[`status`] == null) {
|
||||||
this.send({"refresh": "automatic"});
|
this.send({"refresh": "automatic"});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -124,8 +125,7 @@ class Page_Popup extends Page {
|
||||||
|
|
||||||
events() {
|
events() {
|
||||||
let ACTIONS = {};
|
let ACTIONS = {};
|
||||||
ACTIONS[`open,settings`] = () => {chrome.runtime.openOptionsPage();}
|
ACTIONS[`open,settings`] = () => {chrome.runtime.openOptionsPage();};
|
||||||
ACTIONS[`open,help`] = () => {new Window(`help.htm`);}
|
|
||||||
ACTIONS[`analysis,reload`] = () => {this.send({"refresh": "manual"});}
|
ACTIONS[`analysis,reload`] = () => {this.send({"refresh": "manual"});}
|
||||||
|
|
||||||
// Add the event listeners.
|
// Add the event listeners.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue