Maybe do something like below, so you can switch with env variable: 
```js
if(env.CHROMIUM) ...
```