mirror of
https://github.com/koel/koel
synced 2024-11-12 23:47:09 +00:00
Simplify OS detection code
This commit is contained in:
parent
1b81312893
commit
313d9c8fc1
1 changed files with 1 additions and 5 deletions
|
@ -74,11 +74,7 @@
|
||||||
|
|
||||||
// Add an ugly mac/non-mac class for OS-targeting styles.
|
// Add an ugly mac/non-mac class for OS-targeting styles.
|
||||||
// I'm crying inside.
|
// I'm crying inside.
|
||||||
if (navigator.userAgent.indexOf('Mac') !== -1) {
|
$('html').addClass(navigator.userAgent.indexOf('Mac') !== -1 ? 'mac' : 'non-mac');
|
||||||
$("html").addClass("mac");
|
|
||||||
} else {
|
|
||||||
$("html").addClass("non-mac");
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in a new issue