Skip to content

Commit

Permalink
fix: dim files bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsaban committed May 30, 2024
1 parent 59f84e1 commit 8a30266
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ const initExtension = () => {
}

var observer = new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
mutations.forEach(async function (mutation) {
if (mutation.type === 'attributes' && mutation.attributeName === 'data-file-user-viewed') {
toggleDimFiles(getStorage('dimFiles'))
const dimFiles = await getStorage('dimFiles')
toggleDimFiles(dimFiles)
if (document.querySelector('#customLines')?.checked) addCustomLineChange()
}
})
Expand Down Expand Up @@ -249,7 +250,7 @@ const App = () => {
</button>
</div>
</div>
<hr className='bg-white opacity-20' />
<hr className='bg-white opacity-20 my-2' />
<Footer />
</div>
</div>
Expand Down

0 comments on commit 8a30266

Please sign in to comment.