Skip to content

Commit db3dc93

Browse files
committed
Fixes
1 parent 5051434 commit db3dc93

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

app/contributor-preferences-renderer.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ let eventsAttached = false
66

77
window.onload = async (event) => {
88
const settings = await window.settings.currentSettings()
9-
new HtmlTranslate(document).translate()
10-
119
setTimeout(() => { eventsAttached = true }, 500)
1210

1311
document.ondragover = event =>

app/preferences-preload.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { exposeGlobal, exposeI18next, exposeProcess, exposeSettings, exposeStretchly } from './utils/context-bridge-exposers.js'
1+
import { exposeElectronApi, exposeGlobal, exposeI18next, exposeProcess, exposeSettings, exposeStretchly } from './utils/context-bridge-exposers.js'
22

3+
exposeElectronApi()
34
exposeGlobal()
45
exposeI18next()
56
exposeProcess()

app/preferences-renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ window.onload = async (e) => {
6767
document.querySelector('#chrome').innerHTML = await window.process.chrome()
6868
document.querySelector('#electron').innerHTML = await window.process.electron()
6969
document.querySelector('#platform').innerHTML = await window.process.platform()
70-
document.querySelector('#windowsStore').innerHTML = await window.process.windowsStore || false
70+
document.querySelector('#windowsStore').innerHTML = await window.process.windowsStore() || false
7171
}
7272
setWindowHeight()
7373
}

app/process-renderer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ window.onload = async (e) => {
1111
window.stretchly.onShowNotification(async (text, silent) => {
1212
__electronLog.info(`Stretchly: showing notification "${text}" (silent: ${silent})`)
1313
const title = await window.utils.shouldShowNotificationTitle(
14-
await window.process.platform,
14+
await window.process.platform(),
1515
await window.process.getSystemVersion()
1616
)
1717
? 'Stretchly'
@@ -25,7 +25,7 @@ window.onload = async (e) => {
2525
})
2626

2727
window.stretchly.onCheckVersion(async (oldVersion, notify, silent) => {
28-
if (window.global.getValue('isNewVersion') && notify) {
28+
if (await window.global.getValue('isNewVersion') && notify) {
2929
notifyNewVersion(silent)
3030
} else {
3131
new VersionChecker()
@@ -50,7 +50,7 @@ window.onload = async (e) => {
5050
})
5151

5252
async function notifyNewVersion (silent) {
53-
const title = await window.utils.shouldShowNotificationTitle(await window.process.platform, await window.process.getSystemVersion()) ? 'Stretchly' : ''
53+
const title = await window.utils.shouldShowNotificationTitle(await window.process.platform(), await window.process.getSystemVersion()) ? 'Stretchly' : ''
5454
const notification = new Notification(title, {
5555
body: await window.i18next.t('process.newVersionAvailable'),
5656
silent

0 commit comments

Comments
 (0)