diff --git a/components/advancedSettings/JetpackBoost/index.js b/components/advancedSettings/JetpackBoost/index.js
index bdbcdcc..c5caefc 100644
--- a/components/advancedSettings/JetpackBoost/index.js
+++ b/components/advancedSettings/JetpackBoost/index.js
@@ -11,9 +11,8 @@ import SingleOption from './SingleOption';
import InstallActivatePluginButton from './InstallActivatePluginButton';
const JetpackBoost = ( { methods, constants } ) => {
-
const currentUrl = window.location.href;
- const siteUrl = currentUrl.split('/wp-admin/')[0];
+ const siteUrl = currentUrl.split( '/wp-admin/' )[ 0 ];
const fields = [
{
@@ -26,7 +25,7 @@ const JetpackBoost = ( { methods, constants } ) => {
// translators: %1$s is the opening tag, %2$s is the closing tag.
__( 'Discover more %1$shere%2$s', 'wp-module-performance' ),
'',
''
),
@@ -44,8 +43,7 @@ const JetpackBoost = ( { methods, constants } ) => {
value: NewfoldRuntime.sdk.performance.jetpack_boost_critical_css,
type: 'toggle',
premiumUrl:
- siteUrl +
- '/wp-admin/admin.php?page=jetpack-boost#upgrade',
+ siteUrl + '/wp-admin/admin.php?page=jetpack-boost#upgrade',
showOnModuleDisabled: false,
},
{
@@ -107,7 +105,9 @@ const JetpackBoost = ( { methods, constants } ) => {
constants={ constants }
setModuleStatus={ setModuleStatus }
/>
-
+
{ fields.map( ( field ) => {
if ( field.showOnModuleDisabled ) {
return (