Skip to content

Commit

Permalink
updated check for hostgator
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijitb committed Oct 8, 2024
1 parent ba4556b commit 26af110
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '3970b4d6c65605cc2d65');
<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '97f9cfd4e293ed413729');
2 changes: 1 addition & 1 deletion build/index.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ export const CapabilityAPI = {
// get the brand name from newfold runtime
const brand = window.NewfoldRuntime?.plugin?.brand || 'wordpress';
// add region if HostGator
if ( brand.includes( 'hostgator' ) ) {
if (
brand.includes( 'hostgator' ) &&
window.NewfoldRuntime?.plugin?.region
) {
return brand + '-' + window.NewfoldRuntime?.plugin?.region;
}
return brand;
Expand Down

0 comments on commit 26af110

Please sign in to comment.