From 59af6a9068797d61c6f1e45141fa191cede66cbd Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sat, 7 Jan 2023 10:23:19 +0100 Subject: [PATCH 1/7] release v3.5.1 --- appinfo/info.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index 95f77d9..fef6ace 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -32,7 +32,7 @@ Notice Because I believe in a free and decentralized Internet, [Gitnet](https://gitnet.fr) is **self-hosted at home**. In case of downtime, you can download **Custom Menu** from [here](https://kim.deblan.fr/~side_menu/). ]]> - 3.5.0 + 3.5.1 agpl Simon Vieille SideMenu From ed31ed3623f70dfa9eeaf72c8359101da7031915 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sat, 21 Jan 2023 22:12:17 +0100 Subject: [PATCH 2/7] add check if menu exists before adding event listeners --- templates/js/script.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/templates/js/script.php b/templates/js/script.php index 3770873..27e1273 100644 --- a/templates/js/script.php +++ b/templates/js/script.php @@ -73,6 +73,10 @@ if ($_['always-displayed']) { const headerMenuOpener = document.querySelector('#header .side-menu-opener') const sideMenuOpener = document.querySelectorAll('#side-menu .side-menu-opener') + if (!headerMenuOpener) { + return + } + sideMenuFocus = () => { let a = document.querySelector('.side-menu-app.active a', sideMenu) @@ -174,9 +178,11 @@ if ($_['always-displayed']) { PageLoader() - - nextcloud.parentNode.insertBefore(sideMenuOpener, nextcloud) - - nextcloud.parentNode.insertBefore(sideMenuOpener, nextcloud.nextSibling) - + if (nextcloud) { + + nextcloud.parentNode.insertBefore(sideMenuOpener, nextcloud) + + nextcloud.parentNode.insertBefore(sideMenuOpener, nextcloud.nextSibling) + + } })(); From 571706986efaca6cb6ac3040cf38f803efcabedc Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sat, 21 Jan 2023 22:18:45 +0100 Subject: [PATCH 3/7] release v3.5.2 --- CHANGELOG.md | 4 ++++ appinfo/info.xml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25f216f..758b130 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## [Unreleased] +## 3.5.2 +### Fixed +* add check if menu exists before adding event listeners (#210) + ## 3.5.1 ### Added * add translations (thanks to p-bo adn gallegonovato) diff --git a/appinfo/info.xml b/appinfo/info.xml index fef6ace..211eff9 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -32,7 +32,7 @@ Notice Because I believe in a free and decentralized Internet, [Gitnet](https://gitnet.fr) is **self-hosted at home**. In case of downtime, you can download **Custom Menu** from [here](https://kim.deblan.fr/~side_menu/). ]]> - 3.5.1 + 3.5.2 agpl Simon Vieille SideMenu From 9566d32a893286cdda0e7119b61a25f39e7a372b Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 12 Feb 2023 00:28:51 +0100 Subject: [PATCH 4/7] update readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 273173d..d47fb03 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ You can customize colors depending of the theme (Dark theme and Breeze Dark). You like this app and you want to support me? ☕ [Buy me a coffee](https://www.buymeacoffee.com/deblan) or [Donate with liberapay](https://liberapay.com/deblan) +[Read the documentation](https://deblan.gitnet.page/side_menu_doc/). + Requirements ------------ From 1093042a17fb9125e571261d0e0720ad2c8aaa90 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 12 Feb 2023 00:29:18 +0100 Subject: [PATCH 5/7] update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d47fb03..e00568b 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ You can customize colors depending of the theme (Dark theme and Breeze Dark). You like this app and you want to support me? ☕ [Buy me a coffee](https://www.buymeacoffee.com/deblan) or [Donate with liberapay](https://liberapay.com/deblan) -[Read the documentation](https://deblan.gitnet.page/side_menu_doc/). +## [Read the documentation](https://deblan.gitnet.page/side_menu_doc/) Requirements ------------ From 0ee10e08e9fc12753e3381ff519f60eb4a3807ea Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 12 Feb 2023 00:31:47 +0100 Subject: [PATCH 6/7] update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e00568b..449bc17 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ You can customize colors depending of the theme (Dark theme and Breeze Dark). You like this app and you want to support me? ☕ [Buy me a coffee](https://www.buymeacoffee.com/deblan) or [Donate with liberapay](https://liberapay.com/deblan) -## [Read the documentation](https://deblan.gitnet.page/side_menu_doc/) +## [📘 Read the documentation](https://deblan.gitnet.page/side_menu_doc/) Requirements ------------ From b141d7ba7cf85daf2dfb3f84134b09d47c1af071 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 12 Feb 2023 16:56:22 +0100 Subject: [PATCH 7/7] update readme --- appinfo/info.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index 211eff9..762d03d 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -37,7 +37,7 @@ In case of downtime, you can download **Custom Menu** from [here](https://kim.de Simon Vieille SideMenu - https://gitnet.fr/deblan/side_menu/src/branch/master/README.md + https://deblan.gitnet.page/side_menu_doc/ https://gitnet.fr/deblan/side_menu/src/branch/master/README.md customization