Plugin Directory

Changeset 2385681


Ignore:
Timestamp:
09/21/2020 02:06:47 PM (6 years ago)
Author:
pytenlabs
Message:

update banner
bot script to use new cdn & release

Location:
mailcastr-bot
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • mailcastr-bot/trunk/mcbot.php

    r2378392 r2385681  
    1919        $this->plugin->apiKey = '';
    2020        $this->plugin->displayName = 'Mailcastr Bot';
    21         $this->plugin->cdnUrl = 'https://widgets.mailcastr.com/release/';
    2221
    2322        add_action('wp_head', array(&$this, 'insertBotScript'));
     
    4039                var s=document.createElement('script');
    4140                s.type='text/javascript';
    42                 s.setAttribute('data-key', '{$api_key});
    43                 s.async=true;
    44                 s.src='{$this->plugin->cdnUrl}bot/v1/mcbot.min.js';
     41                s.setAttribute('data-key', '{$api_key}');
     42                s.src='https://widgets.mailcastr.com/release/bot/v1/mcbot.min.js';
    4543                h.appendChild(s);
    4644            </script>";
Note: See TracChangeset for help on using the changeset viewer.