Fixed MacOS Safari loading issue
This commit is contained in:
parent
dd6693a9d2
commit
2d8407eb1e
@ -412,7 +412,7 @@ export default class AnimeNotifier {
|
||||
|
||||
try {
|
||||
json = JSON.parse(data)
|
||||
} catch {
|
||||
} catch(err) {
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -74,6 +74,11 @@ export default class ServerEvents {
|
||||
}
|
||||
|
||||
let button = document.getElementById("load-new-activities")
|
||||
|
||||
if(!button) {
|
||||
return
|
||||
}
|
||||
|
||||
let buttonText = document.getElementById("load-new-activities-text")
|
||||
let newCount = parseInt(button.dataset.count) + 1
|
||||
button.dataset.count = newCount.toString()
|
||||
|
Loading…
Reference in New Issue
Block a user