Not entirely, there are still some APIs that are unimplemented in Firefox[1]. But yes, adding storage.sync will help a lot. [1]: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Br...
Seems that it can be turned off at: chrome://flags/#expensive-background-timer-throttling ...though they may eventually remove the flag.
The original example does not return a mutable reference; in Rust you must explicitly opt in to mutability. Compare [1] and [2]. [1]: https://play.rust-lang.org/?gist=78e7af18c6fc7d37d9df96be63a... [2]:…
Not entirely, there are still some APIs that are unimplemented in Firefox[1]. But yes, adding storage.sync will help a lot. [1]: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Br...
Seems that it can be turned off at: chrome://flags/#expensive-background-timer-throttling ...though they may eventually remove the flag.
The original example does not return a mutable reference; in Rust you must explicitly opt in to mutability. Compare [1] and [2]. [1]: https://play.rust-lang.org/?gist=78e7af18c6fc7d37d9df96be63a... [2]:…