aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/proton-drive/webview-unsafe.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/proton-drive/webview-unsafe.js')
-rwxr-xr-xrecipes/proton-drive/webview-unsafe.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes/proton-drive/webview-unsafe.js b/recipes/proton-drive/webview-unsafe.js
new file mode 100755
index 0000000..9198ac5
--- /dev/null
+++ b/recipes/proton-drive/webview-unsafe.js
@@ -0,0 +1,16 @@
1const notImplemented = () => {
2 console.warn('chrome.runtime is not implemented');
3};
4
5window.chrome = {
6 runtime: {
7 connect: () => ({
8 onMessage: {
9 addListener: notImplemented,
10 removeListener: notImplemented,
11 },
12 postMessage: notImplemented,
13 disconnect: notImplemented,
14 }),
15 },
16};