|
|
@@ -1,15 +1,13 @@
|
|
|
const osValue = process.platform
|
|
|
|
|
|
module.exports = () => {
|
|
|
- if (osValue == 'darwin') {
|
|
|
- return 'Mac OS'
|
|
|
- } else if (osValue == 'win32') {
|
|
|
- return 'Windows OS'
|
|
|
- } else if (osValue == 'android') {
|
|
|
- return 'Android OS'
|
|
|
- } else if (osValue == 'linux') {
|
|
|
- return 'Linux OS'
|
|
|
- } else {
|
|
|
- return 'Other OS'
|
|
|
- }
|
|
|
+ return osValue == 'darwin'
|
|
|
+ ? 'Mac OS'
|
|
|
+ : osValue == 'win32'
|
|
|
+ ? 'Windows OS'
|
|
|
+ : osValue == 'android'
|
|
|
+ ? 'Android OS'
|
|
|
+ : osValue == 'linux'
|
|
|
+ ? 'Linux OS'
|
|
|
+ : 'Other OS'
|
|
|
}
|