mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-01-25 16:18:27 +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`;
|
userAgent = `Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/${ chromeVersion } Safari/537.36`;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
throw 'Error invalid platform specified to getUserAgentString()';
|
||||||
}
|
}
|
||||||
return userAgent;
|
return userAgent;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user