From 7a77534098d2a19ad4c67e58ecb30dcea778776d Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Sun, 4 Jul 2021 23:56:02 +0530 Subject: [PATCH] Remove all direct localStorage calls. Also: make instance changes active instantly without needing a reload. --- src/Constants.js | 3 --- src/components/Channel.vue | 8 ++------ src/components/Player.vue | 13 ++++++------- src/components/Playlist.vue | 5 ++--- src/components/SearchResults.vue | 6 ++---- src/components/SearchSuggestions.vue | 4 +--- src/components/TrendingPage.vue | 3 +-- src/components/WatchVideo.vue | 9 ++++----- src/main.js | 12 ++++++++++++ 9 files changed, 30 insertions(+), 33 deletions(-) delete mode 100644 src/Constants.js diff --git a/src/Constants.js b/src/Constants.js deleted file mode 100644 index c500047b..00000000 --- a/src/Constants.js +++ /dev/null @@ -1,3 +0,0 @@ -export default { - BASE_URL: localStorage.getItem("instance") || "https://pipedapi.kavin.rocks", -}; diff --git a/src/components/Channel.vue b/src/components/Channel.vue index 8b2ca66e..f12d187c 100644 --- a/src/components/Channel.vue +++ b/src/components/Channel.vue @@ -21,7 +21,6 @@