diff --git a/includes/Runtime.php b/includes/Runtime.php index 446e31b..b4e3757 100644 --- a/includes/Runtime.php +++ b/includes/Runtime.php @@ -67,8 +67,14 @@ public function prepareRuntime() { * Load Runtime into the page. */ public function register_runtime() { + \wp_register_script( + 'nfd-runtime', + null, + null, + $wp_version + ); \wp_add_inline_script( - $this->container->plugin()->id . '-script', + 'nfd-runtime', 'window.NewfoldRuntime =' . wp_json_encode( $this->prepareRuntime( $this->container ) ) . ';', 'before' );