Plugin Directory

Changeset 2378389


Ignore:
Timestamp:
09/10/2020 12:11:16 AM (6 years ago)
Author:
pytenlabs
Message:

update script

File:
1 edited

Legend:

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

    r2375712 r2378389  
    1919        $this->plugin->apiKey = '';
    2020        $this->plugin->displayName = 'Mailcastr Bot';
    21         $this->plugin->apiUrl = 'mailcastr.com/';
    2221        $this->plugin->cdnUrl = 'https://widgets.mailcastr.com/release/';
    2322
     
    3837
    3938        echo "<script>
    40                 window.__MCSTR={
    41                     apiKey:'{$api_key}',
    42                     baseUrl:'{$this->plugin->apiUrl}',
    43                     cdnUrl:'{$this->plugin->cdnUrl}'
    44                 };
    4539                var h=document.getElementsByTagName('head')[0];
    4640                var s=document.createElement('script');
    4741                s.type='text/javascript';
    48                 s.src='{$this->plugin->cdnUrl}bot/mcbot.min.js';
     42                s.setAttribute('data-key', '{$api_key});
     43                s.src='{$this->plugin->cdnUrl}bot/v1/mcbot.min.js';
    4944                h.appendChild(s);
    5045            </script>";
Note: See TracChangeset for help on using the changeset viewer.