|
|
|
@ -411,9 +411,11 @@ class CompilerContainer { |
|
|
|
|
|
|
|
|
|
_retrieveOS () { |
|
|
|
|
let osName = 'Unknown OS' |
|
|
|
|
if (navigator.platform.indexOf('Win') !== -1) osName = 'Windows' |
|
|
|
|
if (navigator.platform.indexOf('Mac') !== -1) osName = 'MacOS' |
|
|
|
|
if (navigator.platform.indexOf('Linux') !== -1) osName = 'Linux' |
|
|
|
|
if (navigator.platform.indexOf('Win') !== -1) { |
|
|
|
|
osName = 'Windows' |
|
|
|
|
} else if (navigator.platform.indexOf('Linux') !== -1) { |
|
|
|
|
osName = 'Linux' |
|
|
|
|
} |
|
|
|
|
return osName |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|