Skip to content

Commit

Permalink
Check for script src existence
Browse files Browse the repository at this point in the history
  • Loading branch information
chasegiunta authored Sep 6, 2023
1 parent 7cab4ef commit 6ea68a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function generatePreviewHead(parsedConfig) {

for(const key of Object.keys(parsedConfig)) {
for(const value of parsedConfig[key]) {
if(key == 'script') {
if(key == 'script' && value.scr) {
if(value.src.indexOf('ember-cli-live-reload.js') > -1) {
doc.push(`<script>
(function() {
Expand Down

0 comments on commit 6ea68a3

Please sign in to comment.