fix #183 make weekly calendar view name case insensitive

This commit is contained in:
dragonwocky 2020-11-01 12:16:31 +11:00
parent dccef7815f
commit 293e5ce228

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'
),