mirror of
https://github.com/chylex/TweetDuck.git
synced 2024-11-23 17:42:46 +01:00
18 lines
374 B
JavaScript
18 lines
374 B
JavaScript
import { TD } from "../api/td.js";
|
|
import { ensurePropertyExists } from "../api/utils.js";
|
|
|
|
/**
|
|
* Fixes broken OS detection.
|
|
*/
|
|
export default function() {
|
|
const doc = document.documentElement;
|
|
doc.classList.remove("os-");
|
|
doc.classList.add("os-windows");
|
|
|
|
ensurePropertyExists(TD, "util", "getOSName");
|
|
|
|
TD.util.getOSName = function() {
|
|
return "windows";
|
|
};
|
|
};
|