aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/googledrive/webview-unsafe.js
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-05-28 00:12:22 +0200
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-07-24 00:23:17 +0000
commit2f26373dfecbedc704cf0c7227fc487e0ab7824d (patch)
tree731ff6d19c878a460002cef8c6241e6ea5df2553 /recipes/googledrive/webview-unsafe.js
parent[skype] Context isolation support (diff)
downloadferdium-recipes-2f26373dfecbedc704cf0c7227fc487e0ab7824d.tar.gz
ferdium-recipes-2f26373dfecbedc704cf0c7227fc487e0ab7824d.tar.zst
ferdium-recipes-2f26373dfecbedc704cf0c7227fc487e0ab7824d.zip
[googledrive] Context isolation support
Diffstat (limited to 'recipes/googledrive/webview-unsafe.js')
-rw-r--r--recipes/googledrive/webview-unsafe.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes/googledrive/webview-unsafe.js b/recipes/googledrive/webview-unsafe.js
new file mode 100644
index 0000000..9198ac5
--- /dev/null
+++ b/recipes/googledrive/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};