Closed (fixed)
Project:
Social PWA
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2021 at 09:24 UTC
Updated:
31 Mar 2021 at 15:04 UTC
Jump to comment: Most recent
The issue is caused by the code having a hardcoded path to /sw.js that it tries to load via JavaScript. But this receives a redirect due to the language path to /nl/sw.js which then triggers browser security and prevents load. Directly accessing /nl/sw.js does return the js file successfully
Originally reported in #3200316: The ID attribute for the push subscription management script does not match the generated ID of the toggle element
Let Drupal generate the paths for the scripts and pass those as settings to the script.
Comments
Comment #3
kingdutch