File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ function buildBuilder (client, opts) {
23
23
24
24
function buildBuilderBrowser ( mqttClient , opts ) {
25
25
var url , parsed ;
26
- if ( typeof ( document ) !== 'undefined' ) { // for Web Workers! P.S: typeof(document) !== undefined may be becoming the faster one these days.
26
+ if ( typeof ( document ) !== 'undefined' ) { // for Web Workers! P.S: typeof(document) !== undefined may be becoming the faster one these days.
27
27
parsed = _URL . parse ( document . URL ) ;
28
28
} else {
29
- throw " Could not determine host. Specify host manually." ;
29
+ throw new Error ( ' Could not determine host. Specify host manually.' ) ;
30
30
}
31
-
31
+
32
32
if ( ! opts . protocol ) {
33
33
if ( 'https:' === parsed . protocol ) {
34
34
opts . protocol = 'wss' ;
You can’t perform that action at this time.
0 commit comments