diff --git a/lib/GameResolver.js b/lib/GameResolver.js index 2139033..1bb5739 100644 --- a/lib/GameResolver.js +++ b/lib/GameResolver.js @@ -12,7 +12,7 @@ export default class GameResolver { lookup (type) { if (!type) { throw Error('No game specified') } - if (type.substring(0, 9) === 'protocol-') { + if (type.startsWith('protocol-')) { return { protocol: type.substring(9) }