This commit is contained in:
Cris Stringfellow 2023-01-14 14:56:19 +08:00
parent b3eb04affb
commit e8ebec37cb
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -10,9 +10,11 @@ export function getInjection({sessionId}) {
// this script more portable if it were introduced globally as well as robust
// against API or behaviour changes of the browser or its remote debugging protocol
// in future
console.log({DEBUG, x: JSON.stringify(DEBUG,null,2)});
return `
{
const DEBUG = ${DEBUG};
const X = 1;
const DEBUG = ${JSON.stringify(DEBUG, null, 2)};
const MIN_CHECK_TEXT = 3000; // min time between checking documentElement.innerText
const MIN_NOTIFY = 5000; // min time between telling controller text maybe changed
const MAX_NOTIFICATIONS = 13; // max times we will tell controller text maybe changed