Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

create window electron

const createWindow = () => {
  const mainWindow = new BrowserWindow({
    width: 800,
    height: 400,
  });
  mainWindow.loadFile(path.join(__dirname, 'index.html'));
};
Comment

electron new window

const electron = require('electron')
const BrowserWindow = electron.remote.BrowserWindow

$( "#target" ).click(function() {
	let win = new BrowserWindow({ show: false })
	win.on('close', function () { win = null })
	win.loadURL("github.com")
	win.once('ready-to-show', () => {
  		win.show()
	})
});
Comment

create window electron

app.on('ready', createWindow);
Comment

PREVIOUS NEXT
Code Example
Javascript :: await the end of subscribe angular 
Javascript :: add property to object javascript 
Javascript :: uppercase 
Javascript :: utc to est javascript 
Javascript :: binary sort js 
Javascript :: pass element from child to parent react 
Javascript :: javascript entries() method 
Javascript :: angular inner page in refresh 404 after ng build 
Javascript :: angular lazy loading images 
Javascript :: delete node between indexes node list js 
Javascript :: destructuring props in react 
Javascript :: js bind prototype arrow function 
Javascript :: The document.createElement() Method 
Javascript :: node query selector 
Javascript :: js regexp match 
Javascript :: react-native-apple-authentication 
Javascript :: react-bootstrap-table2-editor 
Javascript :: diferença entre let e var 
Javascript :: if else function react native 
Javascript :: Showing a custom toast function for react-toastify - Toast show 
Javascript :: react route path 
Javascript :: v-show example in vue js 
Javascript :: react native add react native vector icons not working 
Javascript :: mongodb mongoose update delete key 
Javascript :: inbox 
Javascript :: indexof javascript 
Javascript :: strong password javascript 
Javascript :: Difference between “ == “ and “ === “ operators. 
Javascript :: detect query param route change angular 
Javascript :: knex pagination plugin 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =