Main: Add polyfill for toSorted (Palemoon fix)
This commit is contained in:
parent
ce29e7918b
commit
d8802ad20d
1 changed files with 7 additions and 0 deletions
|
|
@ -5,6 +5,13 @@ import { createPinia } from 'pinia'
|
||||||
import 'custom-event-polyfill'
|
import 'custom-event-polyfill'
|
||||||
import './lib/event_target_polyfill.js'
|
import './lib/event_target_polyfill.js'
|
||||||
|
|
||||||
|
// Polyfill for Array.prototype.toSorted (ES2023)
|
||||||
|
if (!Array.prototype.toSorted) {
|
||||||
|
Array.prototype.toSorted = function(compareFn) {
|
||||||
|
return [...this].sort(compareFn)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
import vuexModules from './modules/index.js'
|
import vuexModules from './modules/index.js'
|
||||||
|
|
||||||
import { createI18n } from 'vue-i18n'
|
import { createI18n } from 'vue-i18n'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue