From 0e37dc90b585fa0049f95842864d90eb077a41d5 Mon Sep 17 00:00:00 2001 From: Dragos <86549690+dragos-efy@users.noreply.github.com> Date: Thu, 15 Dec 2022 21:15:56 +0200 Subject: [PATCH] Update piped.js --- src/piped.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/piped.js b/src/piped.js index 1b65d3c9..1e829335 100644 --- a/src/piped.js +++ b/src/piped.js @@ -7,8 +7,9 @@ $ready_once('#efy_sidebar').then(()=>{ for (let a = ['preferences', 'history', 'playlists', 'feed'], b = ['Preferences', 'History', 'Playlists', 'Feed'], c = $('#custom_sidebar_menu'), i = 0; i < a.length; i++){ $append(c, $add('a', {href: `./${a[i]}`}, [b[i]]))} /*Custom Settings*/ $append($('#efy_modules'), $add('details', {id: 'piped_style'}, [ - $add('summary', {}, [$add('i', {efy_icon: 'dots'}), 'Piped Style (Alpha)']), $add('div', {efy_tabs: 'piped_style'})]), + $add('summary', {}, [$add('i', {efy_icon: 'dots'}), 'Piped Style']), $add('div', {efy_tabs: 'piped_style'})]), ); + $insert($('#piped_style > summary'), 'beforeend', $add('mark', {efy_lang: 'alpha'})); /*Tabs*/ for (let a = ['option1', 'option2', 'option3'], b = ['Tab 1', 'Tab 2', 'Tab 3'], c = $('[efy_tabs=piped_style]'), i = 0; i < a.length; i++) { $append(c, $add('button', {efy_tab: a[i]}, [b[i]])); } @@ -26,4 +27,4 @@ $ready_once('#efy_sidebar').then(()=>{ $all(b[i]).forEach( (e)=>{ e.classList.toggle(c[i]) }) }) } -}); \ No newline at end of file +});