From 511a26d53114243cf5b5d3901d1b76e2b7d57741 Mon Sep 17 00:00:00 2001 From: quartz010 Date: Thu, 23 May 2024 01:10:16 +0800 Subject: [PATCH] Optimizing URL path issues --- js/oper.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/oper.js b/js/oper.js index 74bda8d..5076842 100644 --- a/js/oper.js +++ b/js/oper.js @@ -22,6 +22,9 @@ function get_info(callback) { flag = true } returnObject.status = flag + if (!items.apiUrl.endsWith('/')) { + items.apiUrl += '/'; + } returnObject.apiUrl = items.apiUrl returnObject.apiTokens = items.apiTokens returnObject.hidetag = items.hidetag