Move window.heynote.isWebApp to window.heynote.platform.isWebApp

This commit is contained in:
Jonatan Heyman 2024-01-12 14:40:44 +01:00
parent e292fab449
commit 37b62d416e
3 changed files with 3 additions and 3 deletions

View File

@ -27,8 +27,8 @@ contextBridge.exposeInMainWorld("heynote", {
isMac, isMac,
isWindows, isWindows,
isLinux, isLinux,
isWebApp: false,
}, },
isWebApp: false,
themeMode: themeMode, themeMode: themeMode,

View File

@ -40,7 +40,7 @@
fontSize: this.initialSettings.fontSize || defaultFontSize, fontSize: this.initialSettings.fontSize || defaultFontSize,
activeTab: "general", activeTab: "general",
isWebApp: window.heynote.isWebApp, isWebApp: window.heynote.platform.isWebApp,
customBufferLocation: !!this.initialSettings.bufferPath, customBufferLocation: !!this.initialSettings.bufferPath,
systemFonts: [[defaultFontFamily, defaultFontFamily + " (default)"]], systemFonts: [[defaultFontFamily, defaultFontFamily + " (default)"]],
defaultFontSize: defaultFontSize, defaultFontSize: defaultFontSize,

View File

@ -34,6 +34,7 @@ if (uaPlatform.indexOf("Win") !== -1) {
isLinux: false, isLinux: false,
} }
} }
platform.isWebApp = true
class IpcRenderer { class IpcRenderer {
@ -75,7 +76,6 @@ if (settingsData !== null) {
const Heynote = { const Heynote = {
platform: platform, platform: platform,
isWebApp: true,
defaultFontFamily: "Hack", defaultFontFamily: "Hack",
defaultFontSize: isMobileDevice ? 16 : 12, defaultFontSize: isMobileDevice ? 16 : 12,