From e5145a715fad7c507618009821405e35b6583e5f Mon Sep 17 00:00:00 2001 From: nightwing Date: Tue, 20 Dec 2016 20:56:44 +0000 Subject: [PATCH] firefox doesn't open the link if it's not in document --- plugins/c9.core/util.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/c9.core/util.js b/plugins/c9.core/util.js index 187f2f34..7db76128 100644 --- a/plugins/c9.core/util.js +++ b/plugins/c9.core/util.js @@ -31,7 +31,11 @@ define(function(require, exports, module) { a.rel = "noreferrer"; a.target = "_blank"; a.href = url; + document.body.appendChild(a); a.click(); + setTimeout(function() { + a.remove(); + }); }; var SupportedIcons = (function() {