Skip to content

stewartpark/chrome-localStorage-shim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

chrome-localStorage-shim

chrome-localStorage-shim provides a thin emulation layer to chrome.storage.local to implement window.localStorage in a packaged chrome app environment.

In a packaged app environment, many things are limited due to the design.

But many libraries and frameworks depend on basic HTML5 features such as localStorage, and it being unavailable on the packaged app environment makes things so much harder. You would encounter the following error.

window.localStorage is not available in packaged apps. Use chrome.storage.local instead.

Just adding the <script src="chrome_localStorage.js"></script> line in the <head> tag solves everything.

About

chrome-localStorage-shim provides a thin emulation layer to chrome.storage.local to implement window.localStorage in a packaged chrome app environment.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published