javascript - Angular-locker Safari Private Browsing -
we're using third party wrapper around local/session storage called angular-locker.
we need able support safari private browsing in our project if storage isn't supported, browser throws js exception , our angular app doesn't initialize. i've noticed use of remy's polyfill plug , play script? how supposed use in project?
currently fallback $cookies using locker.issupported() don't understand point of function if can't call or check it?
solved problem similar gist.
the solution override of decorator functions using $cachefactory, if driver not able intialized. switched using $cachefactory $cookies instead.
Comments
Post a Comment