From 3a2f6e34bb265ec47738836a4d45899bda69f1fb Mon Sep 17 00:00:00 2001 From: chylex <info@chylex.com> Date: Tue, 12 Apr 2016 01:59:14 +0200 Subject: [PATCH] Hook into window.open --- Resources/code.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Resources/code.js b/Resources/code.js index 20dae5a9..9b666ee9 100644 --- a/Resources/code.js +++ b/Resources/code.js @@ -210,4 +210,8 @@ e.preventDefault(); }); + + window.open = function(url){ + $TD.openBrowser(url); + }; })($,$TD);