[9575f0]: / wvclient.js  Maximize  Restore  History

Download this file

22 lines (21 with data), 536 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
<script>
const consoleLog = window.console.log;
const newConsole = window.console;
newConsole.log = function(args) {
    if (parent !== undefined)
        parent.postMessage(args, "*");
    consoleLog(args);
};
newConsole.warn = function(args) {
    if (parent !== undefined)
        parent.postMessage(args, "*");
    consoleLog(args);
};
newConsole.info = newConsole.log;
newConsole.error = function(args) {
    if (parent !== undefined)
        parent.postMessage(args, "*");
    consoleLog(args);
};
console = newConsole;
</script>