diff options
author | 2021-08-31 16:29:31 +0530 | |
---|---|---|
committer | 2021-08-31 16:49:36 +0530 | |
commit | 91ebfb1c7dc2ef63be02f614585fdf9fd9ef6773 (patch) | |
tree | 510505dbf4f5997f46dc6e0d9cf6ddd61553b548 /src/webview/recipe.js | |
parent | 5.6.1-nightly.44 [skip ci] (diff) | |
download | ferdium-app-91ebfb1c7dc2ef63be02f614585fdf9fd9ef6773.tar.gz ferdium-app-91ebfb1c7dc2ef63be02f614585fdf9fd9ef6773.tar.zst ferdium-app-91ebfb1c7dc2ef63be02f614585fdf9fd9ef6773.zip |
refactor: expose safeParseInt so that all recipes can use the same for consistent error handling
Diffstat (limited to 'src/webview/recipe.js')
-rw-r--r-- | src/webview/recipe.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/webview/recipe.js b/src/webview/recipe.js index f88b94cfe..1981c8731 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js | |||
@@ -102,6 +102,8 @@ contextBridge.exposeInMainWorld('ferdi', { | |||
102 | open: window.open, | 102 | open: window.open, |
103 | setBadge: (direct, indirect) => | 103 | setBadge: (direct, indirect) => |
104 | badgeHandler.setBadge(direct, indirect), | 104 | badgeHandler.setBadge(direct, indirect), |
105 | safeParseInt: (text) => | ||
106 | badgeHandler.safeParseInt(text), | ||
105 | displayNotification: (title, options) => | 107 | displayNotification: (title, options) => |
106 | notificationsHandler.displayNotification(title, options), | 108 | notificationsHandler.displayNotification(title, options), |
107 | getDisplayMediaSelector, | 109 | getDisplayMediaSelector, |