Plugin Directory

Changeset 1812893


Ignore:
Timestamp:
01/31/2018 04:00:39 PM (8 years ago)
Author:
robertlyall
Message:

Modifications

Location:
natterly/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • natterly/trunk/README.txt

    r1695678 r1812893  
    22Contributors: robertlyall
    33Tags: natterly,livechat
    4 Tested up to: 4.8
     4Tested up to: 4.9.2
    55Stable tag: trunk
    66License: MIT
  • natterly/trunk/index.php

    r1695678 r1812893  
    1313  $token = get_option("natterly_token");
    1414
    15   if (is_admin() && isset($token) && strlen($token) > 0)
     15  if (isset($token) && strlen($token) > 0)
    1616  {
    1717    $javascript = "window.chatbox = new NatterlyChatbox('$token'); chatbox.render();";
    1818
    19     wp_register_script("natterly-chatbox", "https://cdn.natterly.com/chatbox.js", array(), "1.0.0", true);
     19    wp_enqueue_script("natterly-chatbox", "https://cdn.natterly.com/chatbox.js", array(), "1.0.0", true);
    2020    wp_add_inline_script("natterly-chatbox", $javascript);
    21 
    22     wp_enqueue_script("natterly-chatbox");
    2321  }
    2422}
Note: See TracChangeset for help on using the changeset viewer.