diff options
author | 2019-10-03 13:51:16 +0200 | |
---|---|---|
committer | 2019-10-03 13:51:16 +0200 | |
commit | faecce7f35b566e50224804108621ae6db4739ab (patch) | |
tree | 58bac9507a990d45c578b1ddcaeff2e70e938097 /src/webview | |
parent | re-fix & improve new-window handling (diff) | |
download | ferdium-app-faecce7f35b566e50224804108621ae6db4739ab.tar.gz ferdium-app-faecce7f35b566e50224804108621ae6db4739ab.tar.zst ferdium-app-faecce7f35b566e50224804108621ae6db4739ab.zip |
Add `window.log` for easier logging in event mode
Diffstat (limited to 'src/webview')
-rw-r--r-- | src/webview/recipe.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/webview/recipe.js b/src/webview/recipe.js index e1ff44f05..353eb31fd 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js | |||
@@ -184,3 +184,7 @@ window.open = (url, frameName, features) => { | |||
184 | 184 | ||
185 | return originalWindowOpen(url, frameName, features); | 185 | return originalWindowOpen(url, frameName, features); |
186 | }; | 186 | }; |
187 | |||
188 | if (isDevMode) { | ||
189 | window.log = console.log; | ||
190 | } | ||