Correct formatting
This commit is contained in:
parent
c676af242a
commit
633fa729df
|
@ -94,6 +94,6 @@ browser.runtime.onMessage.addListener(function(message, sender) {
|
|||
|
||||
browser.webRequest.onBeforeRequest.addListener(
|
||||
preventYoutube,
|
||||
{urls: ['*://*.youtube.com/watch?v=*']},
|
||||
{ urls: ['*://*.youtube.com/watch?v=*'] },
|
||||
['blocking']
|
||||
);
|
||||
|
|
|
@ -5,7 +5,7 @@ export default class InvidiousAPI {
|
|||
static async _fetchAPI(action: string, params: any) {
|
||||
let paramString = typeof params == 'string'
|
||||
? params
|
||||
: Object.keys(params).map(function(key){
|
||||
: Object.keys(params).map(function(key) {
|
||||
return encodeURIComponent(key) + '=' + encodeURIComponent(params[key]);
|
||||
}).join('&');
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ export function getPeertubeVideoURL(video, prefs) {
|
|||
return `https://${getPeertubeHost(video.account.host, prefs)}/videos/watch/${video.uuid}`
|
||||
}
|
||||
|
||||
export function getPeertubeHost(host, prefs)
|
||||
{
|
||||
export function getPeertubeHost(host, prefs) {
|
||||
return prefs.openInOriginalInstance ? host : prefs.searchInstance;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue