From 6615b5a96445dea0375784b7c767d469e44ec3ad Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Sun, 21 Jun 2020 01:05:36 +1200 Subject: [PATCH] Lint --- src/renderer/store/modules/utils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/store/modules/utils.js b/src/renderer/store/modules/utils.js index c46b8a13..680fb7c8 100644 --- a/src/renderer/store/modules/utils.js +++ b/src/renderer/store/modules/utils.js @@ -65,20 +65,20 @@ const actions = { const extractors = [ // anything with /watch?v= function() { - if (urlObject.pathname === "/watch" && urlObject.searchParams.has("v")) { - return urlObject.searchParams.get("v") + if (urlObject.pathname === '/watch' && urlObject.searchParams.has('v')) { + return urlObject.searchParams.get('v') } }, // youtu.be function() { - if (urlObject.host === "youtu.be" && urlObject.pathname.match(/^\/[A-Za-z0-9_-]+$/)) { + if (urlObject.host === 'youtu.be' && urlObject.pathname.match(/^\/[A-Za-z0-9_-]+$/)) { return urlObject.pathname.slice(1) } }, // cloudtube function() { if (urlObject.host.match(/^cadence\.(gq|moe)$/) && urlObject.pathname.match(/^\/cloudtube\/video\/[A-Za-z0-9_-]+$/)) { - return urlObject.pathname.slice("/cloudtube/video/".length) + return urlObject.pathname.slice('/cloudtube/video/'.length) } } ]