Main: Add polyfill for toSorted (Palemoon fix)

This commit is contained in:
Lain Soykaf 2025-03-09 12:00:06 +04:00
commit d8802ad20d

View file

@ -5,6 +5,13 @@ import { createPinia } from 'pinia'
import 'custom-event-polyfill'
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 { createI18n } from 'vue-i18n'