Plugin Directory

Changeset 3432769


Ignore:
Timestamp:
01/05/2026 01:42:38 PM (2 months ago)
Author:
jotform
Message:

Version: 3.6.3

Location:
jotform-ai-chatbot
Files:
281 added
4 edited

Legend:

Unmodified
Added
Removed
  • jotform-ai-chatbot/trunk/changelog.txt

    r3432673 r3432769  
    11*** Jotform AI Chatbot Changelog ***
     2
     32026-01-05 - version 3.6.3
     4* Fixed - Chatbot rendering issues
    25
    362026-01-05 - version 3.6.2
  • jotform-ai-chatbot/trunk/classes/JAIC_Core.php

    r3432673 r3432769  
    10891089            if ($statusCode == 200) {
    10901090                return true;
    1091             } else if ($statusCode == 404) {
     1091            } elseif ($statusCode == 404) {
    10921092                update_option(self::$pluginAgentUnavailableKey, wp_json_encode([
    10931093                    "agent_id" => $agentId,
     
    10951095                ]));
    10961096                return false;
    1097             } else if ($statusCode == 403) {
     1097            } elseif ($statusCode == 403) {
    10981098                update_option(self::$pluginPagesSyncBlockedUntilKey, time() + self::$pluginSyncBlockedUntilSeconds);
    10991099                return false;
     
    11541154                return false;
    11551155            }
    1156        
     1156
    11571157            // If agent id changed, clear the block
    11581158            delete_option(self::$pluginAgentUnavailableKey);
     
    14181418        $url = self::$siteEmbedURL . $path . $query;
    14191419        return '
    1420             <script>
    1421             var dJAIC = false;
    1422             try {
    1423                 dJAIC = (window.self !== window.top) && !document.location.href.includes("AiChatbotIframeEmbed");
    1424             } catch (e) {}
    1425             if (!dJAIC) {
    1426                 document.addEventListener("DOMContentLoaded", function () {
    1427                     setTimeout(function () {
    1428                         var s = document.createElement("script");
    1429                         s.src = "' . esc_url($url) . '";
    1430                         s.defer = true;
    1431                         document.head.appendChild(s);
    1432                     }, 2000);
    1433                 });
    1434             }
     1420            <script type="text/javascript">
     1421            document.addEventListener("DOMContentLoaded", function () {
     1422                setTimeout(function () {
     1423                    var s = document.createElement("script");
     1424                    s.src = "' . esc_url($url) . '";
     1425                    s.defer = true;
     1426                    document.head.appendChild(s);
     1427                }, 2000);
     1428            });
    14351429            </script>
    14361430        ';
  • jotform-ai-chatbot/trunk/jotform-ai-chatbot.php

    r3432673 r3432769  
    88* License: GPLv2 or later
    99* License URI: https://www.gnu.org/licenses/gpl-2.0.html
    10 * Version: 3.6.2
     10* Version: 3.6.3
    1111* Author URI: https://www.jotform.com/
    1212*/
     
    1818
    1919// Define plugin constants for main file, directory path, and URL
    20 define('JAIC_PLUGIN_VERSION', '3.6.2');
     20define('JAIC_PLUGIN_VERSION', '3.6.3');
    2121define('JAIC_PLUGIN_DIR', plugin_dir_path(__FILE__));
    2222define('JAIC_PLUGIN_URL', plugin_dir_url(__FILE__));
  • jotform-ai-chatbot/trunk/readme.txt

    r3432673 r3432769  
    55Tested up to: 6.9
    66Requires PHP: 7.0
    7 Stable tag: 3.6.2
     7Stable tag: 3.6.3
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    179179
    180180== Changelog ==
     181= 3.6.3 (2026-01-05) =
     182* Fix: Minor fix on chatbot rendering issues
     183
    181184= 3.6.2 (2026-01-05) =
    182185* Update: Chatbot is no longer rendered on 404 pages
Note: See TracChangeset for help on using the changeset viewer.