]> git.proxmox.com Git - mirror_novnc.git/commit - app/webutil.js
webutil.js: add localStorage/chrome.storage settings.
authorJoel Martin <github@martintribe.org>
Fri, 14 Sep 2012 21:18:18 +0000 (16:18 -0500)
committerJoel Martin <github@martintribe.org>
Mon, 17 Sep 2012 22:15:49 +0000 (17:15 -0500)
commit3af1c2751b60c7e36a29ae4ca322f532fb381fbf
tree05d8dc16e3cca97305e7d7037bcae09826054458
parent51fc3b5f03c31720070956bb1a8b07af34376199
webutil.js: add localStorage/chrome.storage settings.

Add routines to store/read settings in either localStorage or in
chrome.storage.sync (which is synchronized between browsers for
extensions/apps).

Before using chrome.storage.sync the initSettings routine must to
called setup the intermediate cache which speeds up access and allows
multiple setting changes to be coallesced to avoid hitting storage
change frequency limits/quotas.
include/webutil.js