automatically regenerate when an error has occured
This commit is contained in:
parent
f2b2106bbd
commit
2987bdbf5c
1 changed files with 3 additions and 2 deletions
5
scripts/external/watch.js
vendored
5
scripts/external/watch.js
vendored
|
@ -7,7 +7,8 @@ import processor from "/scripts/external/processor.js";
|
|||
import logging from "/scripts/logging.js";
|
||||
import texts from "/scripts/mapping/read.js";
|
||||
import {global} from "/scripts/secretariat.js";
|
||||
import nested from "/scripts/utils/nested.js"
|
||||
import nested from "/scripts/utils/nested.js";
|
||||
import pointer from "/scripts/data/pointer.js";
|
||||
|
||||
export default class watch {
|
||||
static async main() {
|
||||
|
@ -33,7 +34,7 @@ export default class watch {
|
|||
(document.readyState == `complete`) ? PROCESSOR.run(options) : document.onreadystatechange = async () => {(document.readyState == `complete`) ? PROCESSOR.run(options) : PROCESSOR.product.status.done = .125;};
|
||||
}
|
||||
|
||||
(await global.read([`settings`, `behavior`, `autoRun`])) ? document.onreadystatechange = async () => {perform();} : false;
|
||||
(await global.read([`settings`, `behavior`, `autoRun`]) || await pointer.read([`status`, `error`])) ? document.onreadystatechange = async () => {perform(((await pointer.read([`status`, `error`])) ? {"override": true} : null));} : false;
|
||||
|
||||
// Create a listener for messages indicating re-processing.
|
||||
chrome.runtime.onMessage.addListener(async (message, sender, sendResponse) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue