Skip to content
Snippets Groups Projects
Commit d8802ad2 authored by lain's avatar lain
Browse files

Main: Add polyfill for toSorted (Palemoon fix)

parent ce29e791
No related branches found
No related tags found
1 merge request!2072Fix Palemoon
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment