mirror of
https://github.com/heyman/heynote.git
synced 2024-11-21 23:43:22 +01:00
Move window.heynote.isWebApp to window.heynote.platform.isWebApp
This commit is contained in:
parent
e292fab449
commit
37b62d416e
@ -27,8 +27,8 @@ contextBridge.exposeInMainWorld("heynote", {
|
||||
isMac,
|
||||
isWindows,
|
||||
isLinux,
|
||||
isWebApp: false,
|
||||
},
|
||||
isWebApp: false,
|
||||
|
||||
themeMode: themeMode,
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user