aboutsummaryrefslogtreecommitdiff
path: root/app/src/web/assets/js/click_debugger.js
blob: 167298999a7d98018243f88dfb1d0e0dd2365e05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
"use strict";
(function () {
    var _frostAContext = function (e) {
        var element = e.target || e.currentTarget || e.srcElement;
        if (!(element instanceof Element)) {
            console.log("No element found");
            return;
        }
        console.log("Clicked element " + element.tagName + " " + element.className);
    };
    document.addEventListener('contextmenu', _frostAContext, true);
}).call(undefined);