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