From f471516f6b4a59d68573fa5468fc2885d80b28f6 Mon Sep 17 00:00:00 2001 From: taoshihan1991 <630892807@qq.com> Date: Fri, 26 Feb 2021 12:03:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=A9=E5=B1=95=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/gofly-front.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/gofly-front.js b/static/js/gofly-front.js index 5909b15..02ba512 100644 --- a/static/js/gofly-front.js +++ b/static/js/gofly-front.js @@ -32,7 +32,8 @@ GOFLY.init=function(config){ this.GOFLY_EXTRA=config.GOFLY_EXTRA; } if(this.GOFLY_EXTRA==""){ - this.GOFLY_EXTRA='{"refer":"'+document.referrer+'","host":"'+document.location.href+'"}'; + var refer=document.referrer?document.referrer:"无"; + this.GOFLY_EXTRA='{"refer":"'+refer+'","host":"'+document.location.href+'"}'; } this.dynamicLoadJs(this.GOFLY_URL+"/static/js/functions.js?v=1",function(){ if (typeof config.GOFLY_LANG!="undefined"){