X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-search%2Fsearch.service.ts;h=ad2de0f37f54dcb5741121a2d46dccddbe4e2d8b;hb=474542d7ac60f7860daf9ea34d1c31968f43ab29;hp=61acfb466cdcce52dfb5977c83a278d6a20278ab;hpb=fa66c9a601d69f6d57c956a3513e8bbed7ee9616;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-search/search.service.ts b/client/src/app/shared/shared-search/search.service.ts index 61acfb466..ad2de0f37 100644 --- a/client/src/app/shared/shared-search/search.service.ts +++ b/client/src/app/shared/shared-search/search.service.ts @@ -4,7 +4,6 @@ import { HttpClient, HttpParams } from '@angular/common/http' import { Injectable } from '@angular/core' import { ComponentPaginationLight, RestExtractor, RestPagination, RestService } from '@app/core' import { Video, VideoChannel, VideoChannelService, VideoService } from '@app/shared/shared-main' -import { peertubeLocalStorage } from '@root-helpers/peertube-web-storage' import { ResultList, Video as VideoServerModel, @@ -25,11 +24,7 @@ export class SearchService { private restService: RestService, private videoService: VideoService, private playlistService: VideoPlaylistService - ) { - // Add ability to override search endpoint if the user updated this local storage key - const searchUrl = peertubeLocalStorage.getItem('search-url') - if (searchUrl) SearchService.BASE_SEARCH_URL = searchUrl - } + ) { } searchVideos (parameters: { search?: string