fix #183 make weekly calendar view name case insensitive

This commit is contained in:
dragonwocky 2020-11-01 12:16:31 +11:00
parent 667c727ac9
commit 5ac7e521b6
Signed by: dragonwocky
GPG Key ID: C7A48B7846AA706D
2 changed files with 2 additions and 1 deletions

View File

@ -50,6 +50,7 @@ a flexibility update.
- bugfix: set NSRequiresAquaSystemAppearance to false in /Applications/Notion.app/Contents/Info.plist
so system dark/light mode can be properly detected.
- bugfix: make ctrl+f popover shadow less extreme.
- bugfix: "weekly" calendar view name made case insensitive.
- tweak: sticky table/list rows.
- theme: "material ocean" = an oceanic colour palette.
- theme: "dracula" = a theme based on the popular dracula color palette

View File

@ -31,7 +31,7 @@ module.exports = {
document
.querySelectorAll('.notion-collection-view-select')
.forEach((collection_view) => {
if (collection_view.innerText != 'weekly') return;
if (collection_view.innerText.toLowerCase() !== 'weekly') return;
const days = collection_view.parentElement.parentElement.parentElement.parentElement.getElementsByClassName(
'notion-calendar-view-day'
),