Hello,
The site https://app.electricitymap.org currently crashes with "Error message: TypeError: (intermediate value).formatRange is not a function", apparently it seems to be using https://developer.mozilla.org/en-US/doc ... ormatRange feature (I think it was added to Fx 91). Is this available in PaleMoon or is there some workaround? Thanks.
app.electricitymap.org
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:
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:
- Clear any current output
- Navigate or refresh the page in question
- Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
-
- Moongazer
- Posts: 10
- Joined: 2015-08-23, 11:46
- Location: Prague, Czech Republic
Re: app.electricitymap.org
We don't currently support it.
We do have .format(), formatToParts() and resolvedOptions() of that subsection of the spec, but not formatRange() or formatRangeToParts()
Not sure about any workarounds for this at the moment.
We do have .format(), formatToParts() and resolvedOptions() of that subsection of the spec, but not formatRange() or formatRangeToParts()
Not sure about any workarounds for this at the moment.
"The world will not be destroyed by those who do evil, but by those who watch them without doing anything." - Albert Einstein
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
Re: app.electricitymap.org
Simple workaround using a Modify HTTP Response filter.
Code: Select all
[["app.electricitymaps.com",["/Time-.{8}\\.js/",["return new Intl.DateTimeFormat(r,{month:\"short\",day:\"numeric\",year:\"numeric\",timeZone:n}).formatRange(e,t)","const dtf=new Intl.DateTimeFormat(r,{month:\"short\",day:\"numeric\",year:\"numeric\",timeZone:n});return `${dtf.format(e)} - ${dtf.format(t)}`"]]]]
-
- Moongazer
- Posts: 10
- Joined: 2015-08-23, 11:46
- Location: Prague, Czech Republic
Re: app.electricitymap.org
Wonderful. Thank you very much. I was hoping for a quick workaround like this .