oh, what about just doing:

```js
inNode = !ls;
```

Since localStorage doesn't exist in node.