Public
Snippet $2 authored by ZeHiro

MyEdenred

var window = {
    navigator: {
        userAgent: "mobi"
    },
    attachEvent: function(){},
    console: {
        log: function() {}
    },
    location: {
        assign: function() {},
        reload: function() {},
        replace: function() {},
        toString: function() {},
        valueOf: function() {},
    },
    history: {
        back: function() {}
    },
    alert: function() {},
    confirm: function() {},
    prompt: function() {}
};
window.alert.prototype.toString = function() {}
window.prompt.prototype.toString = function() {}
window.confirm.prototype.toString = function() {}

var document = {
    getElementsByTagName: function() {
        return [
            {
                innerHTML: {
                    slice: function() {
                        return "";
                    }
                }
            }
        ];
    },
    forms: [
        {
            attributes: ["to"],
            elements: ["ti"]
        }
    ],
    querySelector: function() {}
};
performance = {
    now: function() {
        return Date.now();
    }
};