PolymerElements / app-storage

Data-pipes and specialized services
61 stars 47 forks source link

IE11 does not work #137

Open RuslanKim opened 6 years ago

RuslanKim commented 6 years ago

Usage of app-localstorage-document.js

static get template()
    {
        return html`<app-localstorage-document key="user-auth-info" data="{{userInfo}}"></app-localstorage-document>`
    }

At least it should not be broken.... but page reloads in dead cycle for IE11.

If I would made such injection in the code of app-localstorage-document.js

attached: function() {
    **if (_browser.msie && _browser.version <= 11) { return }**
    this.listen(window, 'storage', '__onStorage');
    this.listen(
        window.top, 'app-local-storage-changed', '__onAppLocalStorageChanged');
  },

It looks like working and all other functionality on the page does work... ofcouse localStorage, in this case, does NOT work... Is there a way to solve it somehow?

  1. Stage 1 - solve as workaround to be not broken the whole page.
  2. Stage 2 - solve to full functionality of localStorage for IE11 (it was declared in https://caniuse.com/#search=localstorage)

Browsers Affected