https://openinframap.org/ does not display its maps - only a dark blank background

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
Paleuser
Newbie
Newbie
Posts: 6
Joined: 2023-07-14, 02:20

https://openinframap.org/ does not display its maps - only a dark blank background

Unread post by Paleuser » 2025-02-10, 12:57

Please always mention the name/domain of the website in question in your topic title.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:

1) Clear any current output
2) Navigate or refresh the page in question
3) Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.

Code: Select all

Timestamp: 10/02/2025 12:54:35
Error: SyntaxError: await is a reserved identifier
Source File: https://openinframap.org/assets/index-DObGpzPt.js
Line: 68, Column: 38824
Source Code:
 Lf,"top-left"),new Bu(e.map(l=>l.id),6).add(o),this.map=o}}await G.use(Ki).init({fallbackLng:{no:["nb-NO","en"],zh:["zh
ThIs site used to work fine in PM, and still works in a chrome alternative.

User avatar
adoxa
Lunatic
Lunatic
Posts: 426
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: https://openinframap.org/ does not display its maps - only a dark blank background

Unread post by adoxa » 2025-02-11, 00:10

Top-level await is not yet implemented (Issue #2229 (UXP)). Fortunately in this case it's not necessary, so here's a Modify HTTP Response filter to remove it.

Code: Select all

[["openinframap.org",["/index-.*\\.js$/",["}await ","}"]]]]

User avatar
Paleuser
Newbie
Newbie
Posts: 6
Joined: 2023-07-14, 02:20

Re: https://openinframap.org/ does not display its maps - only a dark blank background

Unread post by Paleuser » 2025-02-11, 20:56

Excellent. Followed your directions and that works.

Thank you.