Plugin Directory

Changeset 1695986


Ignore:
Timestamp:
07/13/2017 09:30:06 PM (9 years ago)
Author:
trustedsite
Message:

Add files and changed endpoint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trustedsite-reviews/trunk/js/overview.js

    r1695978 r1695986  
    1111
    1212    function refresh(){
    13         var apiUrl = endpointUrl + '/rpc/ajax?do=lookup-site-status&jsoncallback=?&rand='+new Date().getTime()+'&host=' + encodeURIComponent(host);
     13        var apiUrl = "https://cdn.trustedsite.com/rpc/ajax?do=lookup-site&host=" + encodeURIComponent(host);
    1414        var woocommerce = parseInt($("#ts-data").attr("data-woocommerce"));
    1515        jQuery.getJSON(apiUrl,function(data) {
    1616            console.log(data);
    17             var status = data['status'];
    18             if(status === 'none'){
     17            var success = data['success'];
     18            if(success === 0){
    1919                jQuery("#manage").hide();
    2020                jQuery("#settings").hide();
Note: See TracChangeset for help on using the changeset viewer.