1
0
web/content/book/0/gitbook/gitbook-plugin-livereload/plugin.js
2024-04-05 17:44:02 +09:00

12 lines
327 B
JavaScript

(function() {
var newEl = document.createElement('script'),
firstScriptTag = document.getElementsByTagName('script')[0];
if (firstScriptTag) {
newEl.async = 1;
newEl.src = '//' + window.location.hostname + ':35729/livereload.js';
firstScriptTag.parentNode.insertBefore(newEl, firstScriptTag);
}
})();