A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
handle duplicate channel
Christian Fei9baf6ef93398
diff --git a/lib/repository.js b/lib/repository.jsindex 0f88ebe..e871561 100644--- a/lib/repository.js+++ b/lib/repository.js@@ -21,6 +21,9 @@ export default class Repository {}getChannels () { return this.channels }+ channelExists (name) {+ return this.channels.find(c => c.name === name) ? true : false+ }addChannel (name) {this.channels.push({name})this.saveChannels()