From 2f0dc7e28260460d35cb151a2e6607f5e7fa377e Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Thu, 26 May 2022 10:34:20 +0200 Subject: [PATCH] Backend: Webpack assets fix --- debian/changelog | 2 +- package.json | 2 +- web/html.php | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 54e7bb79..4090ea9a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (1.407.70) stable; urgency=low +hedera-web (1.407.71) stable; urgency=low * Initial Release. diff --git a/package.json b/package.json index cb39779d..b02d8ee0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hedera-web", - "version": "1.407.70", + "version": "1.407.71", "description": "Verdnatura web page", "license": "GPL-3.0", "repository": { diff --git a/web/html.php b/web/html.php index cf0f6ad8..a92c9072 100644 --- a/web/html.php +++ b/web/html.php @@ -43,7 +43,11 @@ function getWebpackAssets() { && property_exists($asset, 'js')) $jsFiles[] = $serverPath . $asset->js; - $jsFiles[] = $serverPath . $wpAssets->{''}->js[0]; + if (isset($wpAssets->_empty_)) + $jsFiles[] = $serverPath . $wpAssets->_empty_->js[0]; + if (isset($wpAssets->{''})) + $jsFiles[] = $serverPath . $wpAssets->{''}->js[0]; + $jsFiles[] = $serverPath . $wpAssets->main->js; return $jsFiles;