diff options
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 | ||