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
1 changed files with 1 additions and 1 deletions

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`;
break;
default:
break;
throw 'Error invalid platform specified to getUserAgentString()';
}
return userAgent;
}