diff --git a/includes/WPAdmin/Listeners/InstallerListener.php b/includes/WPAdmin/Listeners/InstallerListener.php index 4e7470d..0cc0905 100644 --- a/includes/WPAdmin/Listeners/InstallerListener.php +++ b/includes/WPAdmin/Listeners/InstallerListener.php @@ -84,8 +84,8 @@ public function enqueue_installer_react_script() { wp_add_inline_script( 'nfd-installer-enqueue', - 'var nfdInstaller =' . wp_json_encode( - value: array( + 'var nfdInstaller = ' . wp_json_encode( + array( 'restUrl' => \get_home_url() . '/index.php?rest_route=', 'pluginInstallHash' => PluginInstaller::rest_get_plugin_install_hash(), )