From 210131ca184c3aa043371857c022aa1aa149efbf Mon Sep 17 00:00:00 2001 From: Aditya Mangalampalli Date: Fri, 15 Apr 2022 02:00:25 -0700 Subject: Matched casing for almost all replacements --- src/webview/recipe.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/webview/recipe.js') diff --git a/src/webview/recipe.js b/src/webview/recipe.js index 7c069562f..4fcf28363 100644 --- a/src/webview/recipe.js +++ b/src/webview/recipe.js @@ -50,7 +50,7 @@ import { import { DEFAULT_APP_SETTINGS } from '../config'; -const debug = require('debug')('Ferdi:Plugin'); +const debug = require('debug')('Ferdium:Plugin'); const badgeHandler = new BadgeHandler(); @@ -105,9 +105,9 @@ window.open = (url, frameName, features) => { } }; -// We can't override APIs here, so we first expose functions via 'window.ferdi', +// We can't override APIs here, so we first expose functions via 'window.ferdium', // then overwrite the corresponding field of the window object by injected JS. -contextBridge.exposeInMainWorld('ferdi', { +contextBridge.exposeInMainWorld('ferdium', { open: window.open, setBadge: (direct, indirect) => badgeHandler.setBadge(direct, indirect), safeParseInt: text => badgeHandler.safeParseInt(text), @@ -119,7 +119,7 @@ contextBridge.exposeInMainWorld('ferdi', { ipcRenderer.sendToHost( 'inject-js-unsafe', - 'window.open = window.ferdi.open;', + 'window.open = window.ferdium.open;', notificationsClassDefinition, screenShareJs, ); -- cgit v1.2.3-70-g09d2