Browse Source

make chrome CSP errors less obnoxious

pull/54/head
coomdev 2 years ago
parent
commit
bc1bb44670
  1. 4
      src/main.ts

4
src/main.ts

@ -800,9 +800,9 @@ const startup = async (is4chanX = true) => {
cp = new CommandProcessor();
} catch {
if (execution_mode == "userscript")
alert("The page you're on has a CSP that prevents PEE from functionning properly.\n\n If using 4chanX, Add 'blob:' to the JS whitelist. Else, install PEE-companion.");
fireNotification("error", "The page you're on has a CSP that prevents PEE from functionning properly.\n\n If using 4chanX, Add 'blob:' to the JS whitelist. Else, install PEE-companion.");
else
alert("You may be using 4chanX\n\nGo to 4chanX's settings, Advanced > JS Whitelist and add 'blob:' without quotes to the list.");
fireNotification("error", "You may be using 4chanX\n\nGo to 4chanX's settings, Advanced > JS Whitelist and add 'blob:' without quotes to the list.");
return;
}

Loading…
Cancel
Save