aboutsummaryrefslogtreecommitdiffstats
path: root/src/webview/lib/RecipeWebview.ts
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2024-03-10 07:53:26 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2024-03-10 07:53:26 +0530
commitf1f025639db0b891be7649b95a787af990df27ed (patch)
tree7f67f557efb5c64330754e13da4ccc5f01e4d331 /src/webview/lib/RecipeWebview.ts
parentNew public release: 6.7.0 (diff)
parent6.7.1-nightly.28 [skip ci] (diff)
downloadferdium-app-f1f025639db0b891be7649b95a787af990df27ed.tar.gz
ferdium-app-f1f025639db0b891be7649b95a787af990df27ed.tar.zst
ferdium-app-f1f025639db0b891be7649b95a787af990df27ed.zip
Merge branch 'develop' into release; Bump to 6.7.1v6.7.1
Diffstat (limited to 'src/webview/lib/RecipeWebview.ts')
-rw-r--r--src/webview/lib/RecipeWebview.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/webview/lib/RecipeWebview.ts b/src/webview/lib/RecipeWebview.ts
index 44b3c5ab4..31e9a288d 100644
--- a/src/webview/lib/RecipeWebview.ts
+++ b/src/webview/lib/RecipeWebview.ts
@@ -40,6 +40,8 @@ class RecipeWebview {
40 40
41 loopFunc = () => null; 41 loopFunc = () => null;
42 42
43 toggleToTalkFunc = () => null;
44
43 darkModeHandler: ((darkMode: boolean, config: any) => void) | null = null; 45 darkModeHandler: ((darkMode: boolean, config: any) => void) | null = null;
44 46
45 // TODO Remove this once we implement a proper wrapper. 47 // TODO Remove this once we implement a proper wrapper.
@@ -199,6 +201,10 @@ class RecipeWebview {
199 openNewWindow(url) { 201 openNewWindow(url) {
200 ipcRenderer.sendToHost('new-window', url); 202 ipcRenderer.sendToHost('new-window', url);
201 } 203 }
204
205 toggleToTalk(fn) {
206 this.toggleToTalkFunc = fn;
207 }
202} 208}
203 209
204export default RecipeWebview; 210export default RecipeWebview;