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,
isWindows,
isLinux,
isWebApp: false,
},
isWebApp: false,
themeMode: themeMode,

View File

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

View File

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