browsersync-snippet.html.twig in Browsersync 8.2
Same filename and directory in other branches
Default theme implementation to display a Browsersync snippet.
Available variables:
- host: The host or IP address the Browsersync socket is running on.
- port: The port the Browsersync socket is running on.
1 theme call to browsersync-snippet.html.twig
- browsersync_page_bottom in ./
browsersync.module - Implements hook_page_bottom().
File
templates/browsersync-snippet.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to display a Browsersync snippet.
- *
- * Available variables:
- * - host: The host or IP address the Browsersync socket is running on.
- * - port: The port the Browsersync socket is running on.
- */
- #}
- <script id="__bs_script__">
- document.write("<script async src='//{{ host }}:{{ port }}/browser-sync/browser-sync-client.js'><\/script>".replace("HOST", location.hostname));
- </script>