Skip to content

Commit

Permalink
Add support for plugins and upgrade electron to 9
Browse files Browse the repository at this point in the history
  • Loading branch information
suyashmahar committed Nov 26, 2021
1 parent d1b73a0 commit a5f4730
Show file tree
Hide file tree
Showing 3 changed files with 7,408 additions and 752 deletions.
20 changes: 19 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
// -*- js-indent-level: 2; -*-

'use strict'

const path = require('path')
const request = require('request')
const { app, BrowserWindow, ipcMain, Menu, session } = require('electron')
const fs = require('fs')
const os = require('os')
const process = require('process')

const Window = require('./Window')
const RecentUrlsDB = require('./RecentUrlsDB')
Expand Down Expand Up @@ -582,7 +585,8 @@ function showEuropaBrowser (e, url) {
height: 768,
preload: path.join(appDir, 'js', 'preload404.js'),
webPreferences: {
nodeIntegration: false
nodeIntegration: false,
plugins: true
},
icon: iconPath,
frame: DRAW_FRAME,
Expand Down Expand Up @@ -640,7 +644,21 @@ function addRecentURLListeners () {
})
}

/**
* Parse command line arguments
*/
function parseCmdlineArgs() {
let args = process.argv
console.log(args)

for (let i = 0; i < args.length; i++) {

}
}

function main () {
parseCmdlineArgs()

fixASARPath()

setupIcons()
Expand Down
Loading

0 comments on commit a5f4730

Please sign in to comment.