How to reboot () and open () in Atom-Shell

1) Is this javascript call not supported on Atom-shell? window.open ('# / openpage', '_ i', false)

2) In NodeJS-Webkit I can either reload the HTML using win.reload () without the toolbar and buttons. Does Atom-shell support this API?

3) In app.js, which is the program for index.html in Atom-shell

var BrowserWindow = require('browser-window');

      

and index.html tried reload command and failed that BrowserWindow is not defined.

BrowserWindow.reload()

      

+3


source to share


1 answer


browser-window

only works in browser mode (i.e. your application starts up). Try the following:



var remote = require('remote');
remote.getCurrentWindow().reload();

      

+12


source







All Articles