throw error if init.origin is undefined
Merge pull request #344 from scrollback/bug-fixes

fix: throw error if init.origin is undefined