Skip to content

Commit

Permalink
feat: (client) make initial options available in initial payload
Browse files Browse the repository at this point in the history
  • Loading branch information
shakyShane committed Apr 29, 2018
1 parent 06608fb commit 9d9dfb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/connector.tmpl
@@ -1,6 +1,7 @@
window.___browserSync___ = {};
___browserSync___.socketConfig = %config%;
___browserSync___.socketUrl = %url%;
___browserSync___.options = %options%;
if (location.protocol == "https:" && /^http:/.test(___browserSync___.socketUrl)) {
___browserSync___.socketUrl = ___browserSync___.socketUrl.replace(/^http:/, "https:");
}

0 comments on commit 9d9dfb1

Please sign in to comment.