Comments (3)
I added a check to only copy files to the profile if the global chrome/pwa/chrome.jsm
is newer than the profile file. Because that file contains version, it should be automatically copied on every release. Always copying files can still be enabled in the extension settings. Note that on macOS it still copies files every time, because this is needed to properly set PWA name.
from pwasforfirefox.
It only overwrites/copies chrome/pwa
and startupCache
in the profile, and _autoconfig.cfg
and defaults/pref/autoconfig.js
in the Firefox installation (and some additional files on macOS, but this is actually needed on every launch so OS integration works correctly). I did this to make sure UserChrome stuff is always up-to-date, as updating them when package updates would be harder because user may have multiple OS and Firefox profiles.
Maybe the program could do this only when files actually differ from the latest installed version (C:\Program Files\FirefoxPWA\userchrome
on Windows) but I'm not sure what the best way of checking if files need update would be. Perhaps it could check the hash/content of chrome/pwa/chrome.jsm
as it contains package version which should be changed with every new release.
from pwasforfirefox.
What about a script that only runs on package updates/installations to reduce overwrites. Should that not be possible? Your idea also sounds good. Maybe you could do that with an extra version file. But to be honest, I do not know to much about this topic. This behaviour just stood out to me while I was messing with the files in chrome/pwa
and thought I should tell you.
from pwasforfirefox.
Related Issues (20)
- CORS whitelist option HOT 2
- Corners are not rounded, inner site overlaps. HOT 4
- Scrolling at lower FPS on 120hz Screen. macOS Sonoma. HOT 1
- Web apps broken in Firefox 124 HOT 19
- Can't pin PWA apps to taskbar after update HOT 2
- False positive malware detection by Microsoft Defender HOT 3
- Crunchyroll doesn't work with manifest enabled HOT 3
- macOS task switchers always show the Firefox icon HOT 2
- Allowed Domains: Support Wildcard/Regex HOT 1
- "Use the manifest for determining app properties" checkbox does not appear on the PWA installation page for Old Reddit HOT 2
- Proxy support. HOT 9
- Provide an override for the initial background color HOT 1
- PWAs sometimes crash immediately on first opening, and then work normally after re-opening. HOT 3
- Unable to launch apps through PowerToys Run HOT 5
- Redirects always within the PWA HOT 6
- Still unable to delete web apps if the .app was manually deleted beforehand HOT 1
- PWAs show as "Mozilla Firefox" in GNOME Media Player HOT 3
- Can't open a PWA from another PWA when check "Open out-of-scope URLs in a default browser" HOT 2
- macOS PWA apps don't show up as applications in Activity Monitor
- Back and forward buttons don't work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pwasforfirefox.