ui: disable ambigous chars highlight in markdown

This commit is contained in:
undefined committed 2023-01-05 18:18:54 +08:00
1 parent 4005118d6b
commit 21c369139a
2 files changed
+4 -2

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
export function isAbove(width) {
if (window.matchMedia) {
return window.matchMedia(`(min-width: ${width}px)`).matches;
}
return window.innerWidth >= width;
}
export function isBelow(width) {
if (window.matchMedia) {
return window.matchMedia(`(max-width: ${width}px)`).matches;
}
return window.innerWidth <= width;
}
Object.assign(window.Hydro.utils, { isAbove, isBelow });