Giter VIP home page Giter VIP logo

Comments (4)

filips123 avatar filips123 commented on May 8, 2024 1

Well, at least that workaround is better than nothing. I will try to check how Firefox handles this internally, but if I don't find anything easy and useful, I will just implement setting homepage URL when you launch a PWA.

It might not work when multiple PWAs are in the same profile, but they already don't work properly on macOS (#81) and users should install each into own profile, so I guess it's fine.

from pwasforfirefox.

dithom avatar dithom commented on May 8, 2024

Same here, a fix would be awesome!

from pwasforfirefox.

DabeDotCom avatar DabeDotCom commented on May 8, 2024

I don't know how hard it would be to roll into a proper "fix", but my naïve† workaround was to update the browser.startup.homepage setting in about:config to be the same as the start_url page of the PWA:

  1. Open the app's Preferences (e.g., ⌘ Comma on a Mac)
  2. While the Preferences page is displayed, open "Developer Tools » Console" (⌘⌥ K)
  3. In the console, type: document.location.href="about:config" and hit Enter
  4. Accept the Risk
  5. Type home into the Search Box, then change the value of the browser.startup.homepage field from about:home to the URL of your PWA and hit Enter

Et voilà! Close the window/tab (⌘ W) and re-open a new one (⌘ N or ⌘ T) and it should launch your app from now on, rather than showing the Firefox "about:home" page...

† PS — It goes without saying, of course, that this is all likely unsupported: YMMV; use at your own risk; void where prohibited; not applicable in New Hampshire; etc. ;-D

from pwasforfirefox.

filips123 avatar filips123 commented on May 8, 2024

I implemented a fix/workaround for this which will be released in 2.0.0. However, it still doesn't work when multiple PWAs are in the same profile. This does not matter currently as multiple PWAs per profile should not be used because of #81, but once it is fixed, this also needs to be reworked.

from pwasforfirefox.

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.