biofriction-wp-theme/node_modules/browser-sync/templates/connector.tmpl

8 lines
326 B
Cheetah

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:");
}