Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question : How to restart my application? #4505

Closed
lee99 opened this issue Mar 7, 2016 · 8 comments
Closed

Question : How to restart my application? #4505

lee99 opened this issue Mar 7, 2016 · 8 comments
Labels

Comments

@lee99
Copy link

lee99 commented Mar 7, 2016

HI:
In my application,I need a way to restart my application clearly.

I have tried "chrome.runtime.restart()",but the function available only for ChromeOS kiosk mode.

"chrome.runtime.reroad()", that is not my need.

thank you!

@lee99
Copy link
Author

lee99 commented Mar 7, 2016

what i want just like it...
qq 20160229170144

it is the ContextMenu item built in nwjs13.rc2

thank you!

@rogerwang
Copy link
Member

so can this issue be closed?

@lee99
Copy link
Author

lee99 commented Mar 7, 2016

sorry,what I need is a built-in function to restart my app. so that I call it in my way.

@porsager
Copy link

porsager commented Mar 7, 2016

Duplicate of #149

@f3l1x
Copy link

f3l1x commented Sep 14, 2017

nw.Window.get().reload();

// or
window.location.reload();

// or
chrome.runtime.reload()

@jssuttles
Copy link

chrome.runtime.reload() no longer seems to work. Broke when we updated from 0.30.0 to 0.37.0

@f3l1x
Copy link

f3l1x commented Jan 21, 2021

I am using 0.50.2 and chrome.runtime.reload() works for me.

@vankasteelj
Copy link

Just for reference, since 0.93.0 chrome.runtime.reload() doesn't work (it load a google page, then reloads the app), I had to use window.location.reload()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants