From 39cdc9c94a03ed4bca027909e528d56fa008499b Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 15 Apr 2024 10:12:05 +0800 Subject: [PATCH] update for cityline --- webdriver/Maxbotplus_1.0.0/js/cityline_msg_front.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webdriver/Maxbotplus_1.0.0/js/cityline_msg_front.js b/webdriver/Maxbotplus_1.0.0/js/cityline_msg_front.js index 2344263..5ec39a7 100644 --- a/webdriver/Maxbotplus_1.0.0/js/cityline_msg_front.js +++ b/webdriver/Maxbotplus_1.0.0/js/cityline_msg_front.js @@ -27,7 +27,7 @@ function begin() let url = window.location.href; if(url.indexOf('lang=TW') > -1) { const myArray = url.split("lang=TW"); - url = url[0]+"lang=TW"; + //url = url[0]+"lang=TW"; } $(".eventposter").off(); if (typeof setRetryUrl !== "undefined") { @@ -109,7 +109,8 @@ if(getHtmlDocName()==null) { history.back(); } if (typeof goEvent !== "undefined") { - if(location.href.indexOf('home?') > -1) { + if(location.href.indexOf('home?') > -1 + || location.href.indexOf('lang=') > -1) { //goEvent(); } else { history.back();