mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
ui: fix
This commit is contained in:
4 files changed
+46
-99
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.51.2",
|
||||
"version": "4.51.3",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "index.ts",
|
||||
|
||||
@@ -12,7 +12,7 @@ browserUpdate({
|
||||
});
|
||||
|
||||
// monaco-editor requires this polyfill
|
||||
if (window.MediaQueryList) {
|
||||
if (window.MediaQueryList && !MediaQueryList.prototype.addEventListener) {
|
||||
MediaQueryList.prototype.addEventListener = (k, listener) => {
|
||||
MediaQueryList.prototype.addListener(listener);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user