简体   繁体   中英

chrome packaged app reload html

How can I reload complete html of a chrome packaged app. I do not want to do chrome.runtime.reload() . Is there something which can be done using chrome.app.window.current() ?

If you're asking about how to reload just one app window, try calling close() on the appropriate AppWindow , then have your event page create it again.

If you're asking how to replace the DOM in an app window, then replace the DOM, just as you would in any other single-page webapp.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM