Skip to content

Basic localStorage implementation for Internet Explorer HTML Applications (HTA)

License

Notifications You must be signed in to change notification settings

insin/hta-localstorage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

hta-localstorage

IE9 doesn't support localStorage for file:// URLs.

This is a problem if you're writing an HTML Application (HTA) in IE9 mode and were expecting to use localStorage to persist some data.

This is a simple implementation of just the functions in the localStorage API which stringifies a storage object to JSON and writes it to a .hta-localstorage file in your user profile directory on every change.

API

  • getItem(key)
  • setItem(key, value)
  • removeItem(key)
  • clear()

Install

npm install hta-localstorage

MIT Licensed

About

Basic localStorage implementation for Internet Explorer HTML Applications (HTA)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published