mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
28 lines
624 B
TypeScript
28 lines
624 B
TypeScript
window.StyleFix === StyleFix;
|
|
window.PrefixFree === PrefixFree;
|
|
|
|
StyleFix.register((css, raw, element) => {
|
|
return css + "\n/* Custom end comment */\n";
|
|
});
|
|
StyleFix.process();
|
|
|
|
const browser = (() => {
|
|
switch (PrefixFree.prefix) {
|
|
case "-moz-":
|
|
return "firefox";
|
|
case "-ms-":
|
|
return "ie";
|
|
case "-o-":
|
|
return "opera";
|
|
case "-webkit-":
|
|
return "chrome";
|
|
default:
|
|
return "unknown";
|
|
}
|
|
})();
|
|
|
|
// $ExpectError
|
|
if (browser === "safari") {
|
|
// There's no way to differentiate Safari from Chrome using just prefixes
|
|
}
|