Opal-Estate-Pro/node_modules/browser-sync/templates/connector.tmpl

8 lines
326 B
Cheetah
Raw Normal View History

2019-09-13 06:27:52 +02:00
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:");
}