aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/recipe.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-10-03 13:51:16 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-10-03 13:51:16 +0200
commitfaecce7f35b566e50224804108621ae6db4739ab (patch)
tree58bac9507a990d45c578b1ddcaeff2e70e938097 /src/webview/recipe.js
parentre-fix & improve new-window handling (diff)
downloadferdium-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/recipe.js')
-rw-r--r--src/webview/recipe.js4
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
188if (isDevMode) {
189 window.log = console.log;
190}