Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
131
rated 0 times [  136] [ 5]  / answers: 1 / hits: 12122  / 10 Years ago, tue, january 6, 2015, 12:00:00

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



2) In NodeJS-Webkit, I could either reload the HTML with win.reload() without the toolbar and buttons. Is Atom-shell support this API as well?



3) In the app.js that is program to index.html into the Atom-shell



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


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



BrowserWindow.reload()

More From » node.js

 Answers
8

browser-window only works in the Browser process (i.e. the one your app starts in). Try this:



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

[#40218] Monday, January 5, 2015, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
josefinap

Total Points: 548
Total Questions: 125
Total Answers: 106

Location: Angola
Member since Tue, May 5, 2020
4 Years ago
;