GithubHelp home page GithubHelp logo

Make Share Target working about svgcode HOT 5 CLOSED

MeFoDy avatar MeFoDy commented on July 17, 2024
Make Share Target working

from svgcode.

Comments (5)

tomayac avatar tomayac commented on July 17, 2024

I just confirmed that it's not working, but I wonder why. I have screen-recorded evidence of it working before: https://web.dev/svgcode/#web-share-target-files. The Web Share Target API calls are handled by https://svgco.de/share-target/sharetargetsw.js. Do you see anything wrong with it? Maybe some Workbox update broke it? Do you have an idea?

from svgcode.

MeFoDy avatar MeFoDy commented on July 17, 2024

I tried to debug and still can't understand, why it's broken.
It looks like it has been broken since 7dbee6e.
I've found that I have sharetarget.sw service worker active. Tried to add a breakpoint in chrome dev tools on fetch. And it didn't stopped until I tried to open https://svgco.de/share-target/index.html. Looks like magic for me.

from svgcode.

tomayac avatar tomayac commented on July 17, 2024

Good detective work. Looks like it’s running into a case like this. So maybe moving the file back to / and/or changing the registration order will fix it. Need to play with it when I get to my laptop.

from svgcode.

tomayac avatar tomayac commented on July 17, 2024

I have gone back to the previous state where sharetargetsw.js was installed from /, but uses a scope of /share-target/. Hope this works?!

from svgcode.

tomayac avatar tomayac commented on July 17, 2024

I believe this is fixed via 297f7a2. Please re-open when this still doesn't work. Thank you!

from svgcode.

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.