Giter Club home page Giter Club logo

Comments (10)

SeanProulx avatar SeanProulx commented on May 24, 2024

Solved this issue by implementing something similar to what @tmcgee123 posted, except we're using the $cookies service instead.

Thanks again for the lib and hard work! A+

from angular-locker.

tmcgee123 avatar tmcgee123 commented on May 24, 2024

Sweet! Glad someone else was able to use it!!

from angular-locker.

tymondesigns avatar tymondesigns commented on May 24, 2024

Cheers guys 👍

from angular-locker.

aaronmallen avatar aaronmallen commented on May 24, 2024

Where can I find what @tmcgee123 posted? We are having the same issue. I'm assuming this polyfill is what is being referenced? If so can we get this incorporated into angular locker in some way?

from angular-locker.

tymondesigns avatar tymondesigns commented on May 24, 2024

here is the gist https://gist.github.com/tmcgee123/c25325d70277b2ee3f3a

it's not really something that should go in the lib itself though

from angular-locker.

aaronmallen avatar aaronmallen commented on May 24, 2024

@tymondesigns understood 👍

from angular-locker.

seven-cd avatar seven-cd commented on May 24, 2024

Not sure if this works.
https://gist.github.com/tmcgee123/c25325d70277b2ee3f3a

LockerFallback is never called in Private Browsing.

from angular-locker.

tmcgee123 avatar tmcgee123 commented on May 24, 2024

@seven-cd That is sheerly a decorator for the service, so anyone could take it and simply include the module in their application and it will override the locker provider. If you are not familiar with decorators, here's the link: https://docs.angularjs.org/api/auto/service/$provide#decorator

All you have to do is include the code in your application then inject the module to where you are bootstrapping angular-locker currently.

from angular-locker.

andreaslarssen avatar andreaslarssen commented on May 24, 2024

Is the decoration approach still how this is done? I thought I read somewhere that this issue had been fixed and merged, but can't to find back to it. Also, it seems to not work with 2.0.4. Looking further into it now,

from angular-locker.

andreaslarssen avatar andreaslarssen commented on May 24, 2024

And, @tymondesigns, if I understand you correctly, fallback to cookie driver (or whatever) where other drivers are not supported (like Safari private mode) is not considered the scope of Locker, and should be handled in all applications needed to support missing localStorage support? IE. a feature, not a bug?

from angular-locker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.