Skip to content

Commit

Permalink
ninja fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Latourelle authored and Will Latourelle committed May 4, 2020
1 parent a0175a9 commit 834aac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/animated-background.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ function currentConfig() {

var current_view_path = currentViewPath();
var current_view_config = lovelace.config.views[lovelace.current_view];
if (!isNullOrUndefined(lovelace)) {
if (!isNullOrUndefined(lovelace) && !isNullOrUndefined(current_view_path)) {
for (var i = 0; lovelace.config.views.length > i; i++) {
if (lovelace.config.views[i].path == current_view_path) {
current_view_config = lovelace.config.views[i];
Expand Down

0 comments on commit 834aac2

Please sign in to comment.