From 0227bb98281a4cd3d00dca6b01df11d2a02da5fc Mon Sep 17 00:00:00 2001 From: dzaikos Date: Thu, 28 Jun 2018 02:08:21 -0400 Subject: Set opener to null when opening original URL with JavaScript. --- ui/static/js.go | 6 +++--- ui/static/js/app.js | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'ui') diff --git a/ui/static/js.go b/ui/static/js.go index b9c61aa..bc1f439 100644 --- a/ui/static/js.go +++ b/ui/static/js.go @@ -1,11 +1,11 @@ // Code generated by go generate; DO NOT EDIT. -// 2018-06-19 22:56:40.308801738 -0700 PDT m=+0.030613858 +// 2018-06-28 02:11:57.050292961 -0400 EDT m=+0.005178557 package static var Javascript = map[string]string{ "app": `(function(){'use strict';class DomHelper{static isVisible(element){return element.offsetParent!==null;} -static openNewTab(url){let win=window.open(url,"_blank");win.focus();} +static openNewTab(url){let win=window.open("");win.opener=null;win.location=url;win.focus();} static scrollPageTo(element){let windowScrollPosition=window.pageYOffset;let windowHeight=document.documentElement.clientHeight;let viewportPosition=windowScrollPosition+windowHeight;let itemBottomPosition=element.offsetTop+element.offsetHeight;if(viewportPosition-itemBottomPosition<0||viewportPosition-element.offsetTop>windowHeight){window.scrollTo(0,element.offsetTop-10);}} static getVisibleElements(selector){let elements=document.querySelectorAll(selector);let result=[];for(let i=0;i