Preservation of state between calls to the extension for execution

There is a Google Chrome extension with background script which persistent = false, ie causes the script to run only if there is some event, I have this chrome.alarms. During the script, there are some actions. I need to save a javascript object between invocations of the script. Actually the question is how to do it.

An object of type webkitNotifications. Special API for notifications in extensions, I tried to use, but it is somewhat crude (for a long time unread messages are lost the handler of clicking the button, and no ability to customize the notification time).

Thank you.
October 3rd 19 at 03:11
1 answer
October 3rd 19 at 03:13
Solution
Translation is necessary?

developer.chrome.com/extensions/storage.html

Best practices when using event pages
...
If you need to keep runtime state in memory throughout a browser session, use the storage API or IndexedDB. Since the event page does not stay loaded for long, you can no longer rely on global variables for runtime state.
...
Hmm. Apparently still needed. Thank you. - garfield.Wilkinson57 commented on October 3rd 19 at 03:16

Find more questions by tags APIGoogle ChromeJavaScript