Code Monkey home page Code Monkey logo

Comments (4)

ain avatar ain commented on May 20, 2024 1

Landed in v1.6.0.

from smartbanner.js.

ain avatar ain commented on May 20, 2024

Hi @aspmaker, thank you for your interest.

Currently not. At the moment smartbanner.js cookie behaviour mocks the original Apple Smart App banner behaviour by creating a cookie as per browser session.

Nevertheless, I can't see any arguments against such feature and I can see your use-case. I'd gladly accept your Pull Request with this feature.

Before you start, please see contribution guidelines and make sure you add tests against your feature.

from smartbanner.js.

igor10k avatar igor10k commented on May 20, 2024

@ain Apple docs state that banner won't reappear, so cookie per session doesn't mock the original behavior.

from https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/PromotingAppswithAppBanners/PromotingAppswithAppBanners.html:

When the user returns to the webpage, the banner won’t reappear.

from smartbanner.js.

ain avatar ain commented on May 20, 2024

@igor10k you're probably right. Nevertheless, it's not a good idea to change this behaviour due to legacy reasons, but I'd be more than glad to merge a reasonable PR on this.

from smartbanner.js.

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.