2
2
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:
Jia Hao 2016-03-25 19:29:13 +08:00
parent 4b6716efef
commit d890078e6e

View File

@ -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;
} }