diff options
Diffstat (limited to 'src/webview/recipe.js')
-rw-r--r-- | src/webview/recipe.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/webview/recipe.js b/src/webview/recipe.js index 5cab28c09..92c1ee2f0 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js | |||
@@ -23,6 +23,7 @@ import RecipeWebview from './lib/RecipeWebview'; | |||
23 | import Userscript from './lib/Userscript'; | 23 | import Userscript from './lib/Userscript'; |
24 | 24 | ||
25 | import { BadgeHandler } from './badge'; | 25 | import { BadgeHandler } from './badge'; |
26 | import { DialogTitleHandler } from './dialogTitle'; | ||
26 | import { SessionHandler } from './sessionHandler'; | 27 | import { SessionHandler } from './sessionHandler'; |
27 | import contextMenu from './contextMenu'; | 28 | import contextMenu from './contextMenu'; |
28 | import { | 29 | import { |
@@ -51,6 +52,8 @@ const debug = require('debug')('Ferdi:Plugin'); | |||
51 | 52 | ||
52 | const badgeHandler = new BadgeHandler(); | 53 | const badgeHandler = new BadgeHandler(); |
53 | 54 | ||
55 | const dialogTitleHandler = new DialogTitleHandler(); | ||
56 | |||
54 | const sessionHandler = new SessionHandler(); | 57 | const sessionHandler = new SessionHandler(); |
55 | 58 | ||
56 | const notificationsHandler = new NotificationsHandler(); | 59 | const notificationsHandler = new NotificationsHandler(); |
@@ -106,6 +109,7 @@ contextBridge.exposeInMainWorld('ferdi', { | |||
106 | open: window.open, | 109 | open: window.open, |
107 | setBadge: (direct, indirect) => badgeHandler.setBadge(direct, indirect), | 110 | setBadge: (direct, indirect) => badgeHandler.setBadge(direct, indirect), |
108 | safeParseInt: text => badgeHandler.safeParseInt(text), | 111 | safeParseInt: text => badgeHandler.safeParseInt(text), |
112 | setDialogTitle: title => dialogTitleHandler.setDialogTitle(title), | ||
109 | displayNotification: (title, options) => | 113 | displayNotification: (title, options) => |
110 | notificationsHandler.displayNotification(title, options), | 114 | notificationsHandler.displayNotification(title, options), |
111 | getDisplayMediaSelector, | 115 | getDisplayMediaSelector, |
@@ -200,6 +204,7 @@ class RecipeController { | |||
200 | try { | 204 | try { |
201 | this.recipe = new RecipeWebview( | 205 | this.recipe = new RecipeWebview( |
202 | badgeHandler, | 206 | badgeHandler, |
207 | dialogTitleHandler, | ||
203 | notificationsHandler, | 208 | notificationsHandler, |
204 | sessionHandler, | 209 | sessionHandler, |
205 | ); | 210 | ); |