From 2c807a28bcd7d6986af33cf0cce2b73a087d7129 Mon Sep 17 00:00:00 2001 From: zyoshoka Date: Fri, 30 Jun 2023 22:04:06 +0900 Subject: [PATCH] beatport_importer: Fix minor error --- beatport_importer.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beatport_importer.user.js b/beatport_importer.user.js index 9f9faff..66b7bd6 100644 --- a/beatport_importer.user.js +++ b/beatport_importer.user.js @@ -28,7 +28,7 @@ $(document).ready(function () { let release_url = window.location.href.replace('/?.*$/', '').replace(/#.*$/, ''); let release = retrieveReleaseInfo(release_url, release_data); - const track_urls = release_data.tracks.map(url => url.replace('api.beatport.com', 'www.beatport.com/api')).replace(/\/$/, ''); + const track_urls = release_data.tracks.map(url => url.replace('api.beatport.com', 'www.beatport.com/api').replace(/\/$/, '')); let results = []; const promises = track_urls.map((url, index) => $.getJSON(url).then(response => (results[index] = response)));