Changeset 2378389
- Timestamp:
- 09/10/2020 12:11:16 AM (6 years ago)
- File:
-
- 1 edited
-
mailcastr-bot/trunk/mcbot.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mailcastr-bot/trunk/mcbot.php
r2375712 r2378389 19 19 $this->plugin->apiKey = ''; 20 20 $this->plugin->displayName = 'Mailcastr Bot'; 21 $this->plugin->apiUrl = 'mailcastr.com/';22 21 $this->plugin->cdnUrl = 'https://widgets.mailcastr.com/release/'; 23 22 … … 38 37 39 38 echo "<script> 40 window.__MCSTR={41 apiKey:'{$api_key}',42 baseUrl:'{$this->plugin->apiUrl}',43 cdnUrl:'{$this->plugin->cdnUrl}'44 };45 39 var h=document.getElementsByTagName('head')[0]; 46 40 var s=document.createElement('script'); 47 41 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'; 49 44 h.appendChild(s); 50 45 </script>";
Note: See TracChangeset
for help on using the changeset viewer.