Tips and tricks

Javascript - How to watch property change on object or window

you can put this in DevTools console:

// overwrite with accessor
Object.defineProperty(window, 'FORMID', {
    get: function () {
        return window._FORMID;
    },

    set: function (value) {
        debugger; // sets breakpoint
        window._FORMID = value;
    }
});

Leave a comment

Your email address will not be published

{"type":"main_options","images_arr":"'#ffffff'","bg_slideshow_time":"0","site_url":"https:\/\/digitalzoomstudio.net","theme_url":"https:\/\/digitalzoomstudio.net\/wp-content\/themes\/qucreative\/","is_customize_preview":"off","gallery_w_thumbs_autoplay_videos":"off","base_url":"https:\/\/digitalzoomstudio.net"}