b2049209ff
There are some style differences compared to prettier, and not all are necessarily an improvement, but it's much faster now.
12 lines
358 B
TypeScript
12 lines
358 B
TypeScript
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
export function isApplePlatform(): boolean {
|
|
// avoid deprecation warning
|
|
const platform = window.navigator["platform" + ""];
|
|
return (
|
|
platform.startsWith("Mac")
|
|
|| platform.startsWith("iP")
|
|
);
|
|
}
|