diff options
author | hayk <haykh.mfs+github@gmail.com> | 2022-06-22 21:40:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-23 01:40:14 +0000 |
commit | e118745fc2714047d0844061ed963c47edef3bc1 (patch) | |
tree | 09b8480e99fca3c84ff00dbc8660fcf7a8720a18 /recipes/protondrive/webview-unsafe.js | |
parent | Add fixes for Nextcloud-related webapps (#66) (diff) | |
download | ferdium-recipes-e118745fc2714047d0844061ed963c47edef3bc1.tar.gz ferdium-recipes-e118745fc2714047d0844061ed963c47edef3bc1.tar.zst ferdium-recipes-e118745fc2714047d0844061ed963c47edef3bc1.zip |
New recipe 'protondrive' added (#61)
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'recipes/protondrive/webview-unsafe.js')
-rwxr-xr-x | recipes/protondrive/webview-unsafe.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes/protondrive/webview-unsafe.js b/recipes/protondrive/webview-unsafe.js new file mode 100755 index 0000000..9198ac5 --- /dev/null +++ b/recipes/protondrive/webview-unsafe.js | |||
@@ -0,0 +1,16 @@ | |||
1 | const notImplemented = () => { | ||
2 | console.warn('chrome.runtime is not implemented'); | ||
3 | }; | ||
4 | |||
5 | window.chrome = { | ||
6 | runtime: { | ||
7 | connect: () => ({ | ||
8 | onMessage: { | ||
9 | addListener: notImplemented, | ||
10 | removeListener: notImplemented, | ||
11 | }, | ||
12 | postMessage: notImplemented, | ||
13 | disconnect: notImplemented, | ||
14 | }), | ||
15 | }, | ||
16 | }; | ||