Search code examples
google-chromegoogle-chrome-apprestart

Chrome app - how to reboot app?


I am creating a Chrome app and I have made a Logout button in the app.

How can I restart/reset the app? (background.js / background page should be restarted)


Solution

  • chrome.runtime API is your friend.

    chrome.runtime.reload()

    Reloads the app or extension.

    Note that this will probably close all windows opened by the app.