From 6ea68a3e92d1bed72c99298152a491a394fddbbc Mon Sep 17 00:00:00 2001 From: Chase Giunta Date: Wed, 6 Sep 2023 15:06:29 -0400 Subject: [PATCH 1/3] Check for script src existence --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index 4d831bd..8be1b85 100644 --- a/lib/util.js +++ b/lib/util.js @@ -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(`'); }