Changed command line input to only allows youtube video links. (#1073)

* Changed command line input to only allows youtube video links.

* Changed URL logic in renderer/App.js instead of making restriction in index.js.
This commit is contained in:
Hiers 2021-02-28 21:37:18 +00:00 committed by GitHub
parent b37fab4622
commit 215ae68b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions

View File

@ -289,16 +289,6 @@ export default Vue.extend({
v.$router.push({ v.$router.push({
path: `/watch/${result}` path: `/watch/${result}`
}) })
} else {
v.$router.push({
path: `/search/${encodeURIComponent(url)}`,
query: {
sortBy: v.searchSettings.sortBy,
time: v.searchSettings.time,
type: v.searchSettings.type,
duration: v.searchSettings.duration
}
})
} }
}) })
} }