mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-03 11:46:22 -07:00
Fix a catch in getCookie, it was breaking our JS for IE and Edge
This commit is contained in:
parent
b1609f0d3d
commit
4ec04d799b
1 changed files with 1 additions and 1 deletions
|
@ -331,7 +331,7 @@ function getCookie(name, defaultVal) {
|
|||
if(pair[0] == name) {
|
||||
try {
|
||||
val = decodeURIComponent(pair[1].replace("+", " ").replace("%2B", "+"))
|
||||
} catch {
|
||||
} catch(err) {
|
||||
return defaultVal;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue