mirror of
https://github.com/koel/koel
synced 2024-11-28 15:00:42 +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.
|
||||
// I'm crying inside.
|
||||
if (navigator.userAgent.indexOf('Mac') !== -1) {
|
||||
$("html").addClass("mac");
|
||||
} else {
|
||||
$("html").addClass("non-mac");
|
||||
}
|
||||
$('html').addClass(navigator.userAgent.indexOf('Mac') !== -1 ? 'mac' : 'non-mac');
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
Loading…
Reference in a new issue