mirror of https://github.com/heyman/heynote.git
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,
|
isMac,
|
||||||
isWindows,
|
isWindows,
|
||||||
isLinux,
|
isLinux,
|
||||||
|
isWebApp: false,
|
||||||
},
|
},
|
||||||
isWebApp: false,
|
|
||||||
|
|
||||||
themeMode: themeMode,
|
themeMode: themeMode,
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue