Make `processUrlTemplate` fail if script origin is unknown
`document.currentScript` is supported by all browsers that we support. If it returns `null` this indicates that it was called in the wrong context and so fail loudly to make this obvious.
Showing
Please register or sign in to comment