diff options
author | 2021-05-28 00:12:22 +0200 | |
---|---|---|
committer | 2021-07-24 00:23:17 +0000 | |
commit | 2f26373dfecbedc704cf0c7227fc487e0ab7824d (patch) | |
tree | 731ff6d19c878a460002cef8c6241e6ea5df2553 /recipes/googledrive/webview.js | |
parent | [skype] Context isolation support (diff) | |
download | ferdium-recipes-2f26373dfecbedc704cf0c7227fc487e0ab7824d.tar.gz ferdium-recipes-2f26373dfecbedc704cf0c7227fc487e0ab7824d.tar.zst ferdium-recipes-2f26373dfecbedc704cf0c7227fc487e0ab7824d.zip |
[googledrive] Context isolation support
Diffstat (limited to 'recipes/googledrive/webview.js')
-rw-r--r-- | recipes/googledrive/webview.js | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/recipes/googledrive/webview.js b/recipes/googledrive/webview.js index 64a0219..1678825 100644 --- a/recipes/googledrive/webview.js +++ b/recipes/googledrive/webview.js | |||
@@ -1,16 +1,7 @@ | |||
1 | module.exports = (Franz, options) => { | 1 | "use strict"; |
2 | window.chrome = { | 2 | |
3 | runtime: { | 3 | const path = require('path'); |
4 | connect: () => { | 4 | |
5 | return { | 5 | module.exports = (Franz) => { |
6 | onMessage: { | 6 | Franz.injectJSUnsafe(path.join(__dirname, 'webview-unsafe.js')); |
7 | addListener: () => {console.warn('chrome.runtime is not implemented')}, | 7 | }; |
8 | removeListener: () => {console.warn('chrome.runtime is not implemented')}, | ||
9 | }, | ||
10 | postMessage: () => {console.warn('chrome.runtime is not implemented')}, | ||
11 | disconnect: () => {console.warn('chrome.runtime is not implemented')}, | ||
12 | } | ||
13 | } | ||
14 | } | ||
15 | } | ||
16 | } \ No newline at end of file | ||