mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-01-11 01:32:04 +00:00
Should throw error on invalid platform
This commit is contained in:
parent
4b6716efef
commit
d890078e6e
@ -39,7 +39,7 @@ export function getUserAgentString(chromeVersion, platform) {
|
||||
userAgent = `Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/${ chromeVersion } Safari/537.36`;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
throw 'Error invalid platform specified to getUserAgentString()';
|
||||
}
|
||||
return userAgent;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user