Correct formatting

This commit is contained in:
Ealhad 2018-11-12 15:24:12 +01:00
parent c676af242a
commit 633fa729df
4 changed files with 45 additions and 46 deletions

View File

@ -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']
);

View File

@ -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('&');

View File

@ -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;
}