Electron 8.
This commit is contained in:
parent
8b5a7bb02e
commit
141a753893
@ -1076,8 +1076,7 @@ function loadNews(){
|
|||||||
const distroData = DistroManager.getDistribution()
|
const distroData = DistroManager.getDistribution()
|
||||||
const newsFeed = distroData.getRSS()
|
const newsFeed = distroData.getRSS()
|
||||||
const newsHost = new URL(newsFeed).origin + '/'
|
const newsHost = new URL(newsFeed).origin + '/'
|
||||||
$.ajax(
|
$.ajax({
|
||||||
{
|
|
||||||
url: newsFeed,
|
url: newsFeed,
|
||||||
success: (data) => {
|
success: (data) => {
|
||||||
const items = $(data).find('item')
|
const items = $(data).find('item')
|
||||||
@ -1124,8 +1123,7 @@ function loadNews(){
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
timeout: 2500
|
timeout: 2500
|
||||||
}
|
}).catch(err => {
|
||||||
).catch(err => {
|
|
||||||
resolve({
|
resolve({
|
||||||
articles: null
|
articles: null
|
||||||
})
|
})
|
||||||
|
@ -34,7 +34,6 @@ remote.getCurrentWebContents().on('devtools-opened', () => {
|
|||||||
// Disable zoom, needed for darwin.
|
// Disable zoom, needed for darwin.
|
||||||
webFrame.setZoomLevel(0)
|
webFrame.setZoomLevel(0)
|
||||||
webFrame.setVisualZoomLevelLimits(1, 1)
|
webFrame.setVisualZoomLevelLimits(1, 1)
|
||||||
webFrame.setLayoutZoomLevelLimits(0, 0)
|
|
||||||
|
|
||||||
// Initialize auto updates in production environments.
|
// Initialize auto updates in production environments.
|
||||||
let updateCheckListener
|
let updateCheckListener
|
||||||
|
3
index.js
3
index.js
@ -86,6 +86,9 @@ ipcMain.on('distributionIndexDone', (event, res) => {
|
|||||||
// https://electronjs.org/docs/tutorial/offscreen-rendering
|
// https://electronjs.org/docs/tutorial/offscreen-rendering
|
||||||
app.disableHardwareAcceleration()
|
app.disableHardwareAcceleration()
|
||||||
|
|
||||||
|
// https://github.com/electron/electron/issues/18397
|
||||||
|
app.allowRendererProcessReuse = true
|
||||||
|
|
||||||
// Keep a global reference of the window object, if you don't, the window will
|
// Keep a global reference of the window object, if you don't, the window will
|
||||||
// be closed automatically when the JavaScript object is garbage collected.
|
// be closed automatically when the JavaScript object is garbage collected.
|
||||||
let win
|
let win
|
||||||
|
1094
package-lock.json
generated
1094
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -41,7 +41,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"cross-env": "^7.0.2",
|
"cross-env": "^7.0.2",
|
||||||
"electron": "^7.1.14",
|
"electron": "^8.1.1",
|
||||||
"electron-builder": "^22.4.0",
|
"electron-builder": "^22.4.0",
|
||||||
"eslint": "^6.8.0"
|
"eslint": "^6.8.0"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user