Correct - `location.origin` is `undefined` when running on an actual device. That's why i had `location.protocol + '//' + location.hostname`, which isn't what i'd call 'crazy string concatenation' necessarily - just joining the protocol and hostname of a url with its required separator. Maybe `[location.protocol, location.hostname].join('//')` feels better?