From 25366b7a855bc565bb22fa99257b74d5624a94fb Mon Sep 17 00:00:00 2001 From: Dhruwang Date: Mon, 14 Oct 2024 11:40:41 +0530 Subject: [PATCH] fix url --- formbricks.php | 4 ++-- public/class-formbricks-public.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/formbricks.php b/formbricks.php index b1b5aef..b37ab6c 100644 --- a/formbricks.php +++ b/formbricks.php @@ -311,9 +311,9 @@ function formbricks_enqueue_script() if (!empty($environmentId) && !empty($apiHost)) { wp_enqueue_script( 'formbricks', - $apiHost . '/api/packages/website', + $apiHost . '/js/formbricks.umd.cjs', array('jquery'), - '1.0.1', + "3.0.1", true ); diff --git a/public/class-formbricks-public.php b/public/class-formbricks-public.php index 3857c1e..fc4710b 100644 --- a/public/class-formbricks-public.php +++ b/public/class-formbricks-public.php @@ -104,7 +104,7 @@ public function enqueue_scripts() $api_host = get_option('formbricks_api_host'); if (!empty($environment_id) && !empty($api_host)) { - wp_enqueue_script($this->plugin_name, $api_host . '/api/packages/website', array('jquery'), $this->version, false); + wp_enqueue_script($this->plugin_name, $api_host . '/js/formbricks.umd.cjs', array('jquery'), "3.0.1", false); wp_enqueue_script($this->plugin_name, plugin_dir_url(__FILE__) . 'js/index.js', array('jquery'), $this->version, false); } }