Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions scripts/utils/browsersync-update-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
// since the panel can be accessible from another route than /panel
// we rely on the specific script used on the panel (panel.min.js)
function inPanel () {
var scripts = document.head.getElementsByTagName('script')
for (var i = 0; i < scripts.length; i++) {
var script = scripts[i]
var filename = script.src.split('/').pop().split('?').shift()
if (filename === 'panel.min.js') return true
}
return false
return typeof window.panel !== 'undefined'
}
})(window.___browserSync___)