From 7b0fc276f479104053cb36ae63551cfe69d26aea Mon Sep 17 00:00:00 2001 From: Shengqi Chen Date: Wed, 20 Mar 2024 17:40:33 +0800 Subject: [PATCH] fix js error in index.es6 Signed-off-by: Shengqi Chen --- static/js/index.es6 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/index.es6 b/static/js/index.es6 index d34a3c9..244712d 100644 --- a/static/js/index.es6 +++ b/static/js/index.es6 @@ -50,7 +50,7 @@ const vmMirList = new Vue({ $('.mirror-item-label').popover(); }, computed: { - nowBrowsingMirror: () => { + nowBrowsingMirror: function() { var mirrorName = location.pathname.split('/')[1]; if (!mirrorName){ return false; @@ -64,7 +64,7 @@ const vmMirList = new Vue({ } return result; }, - filteredMirrorList: () => { + filteredMirrorList: function() { var filter = this.filter.toLowerCase(); return this.mirrorList.filter((m) => { return m.is_master && m.name.toLowerCase().indexOf(filter) !== -1; @@ -83,7 +83,7 @@ const vmMirList = new Vue({ if (document.hidden === true) { return; } - const self = this; + var self = this; $.getJSON("/static/tunasync.json", (status_data) => { const unlisted_mir = unlisted.map(d => processMirrorItem(d)) status_data = status_data.map(d => processMirrorItem(d)); @@ -209,7 +209,7 @@ var vmIso = new Vue({ }, availableCategories: [] }, - created: () => { + created: function() { var self = this; $.getJSON("/static/status/isoinfo.json", (isoinfo) => { self.distroList = isoinfo;