mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-24 22:38:09 -05:00
Band-aid for NS_ERROR_DOM_SECURITY_ERR toggle issue.
Attempt to catch an exception in tracking code that may be interfering with toggle buttons for some Firefox users.
This commit is contained in:
committed by
Neil Williams
parent
1cbd9d0995
commit
4a6d1ab69f
@@ -225,9 +225,13 @@ r.analytics.breadcrumbs = {
|
||||
},
|
||||
|
||||
storeLastClick: function(el) {
|
||||
this.data[0]['click'] =
|
||||
r.utils.querySelectorFromEl(el, this.selector)
|
||||
this.store()
|
||||
try {
|
||||
this.data[0]['click'] =
|
||||
r.utils.querySelectorFromEl(el, this.selector)
|
||||
this.store()
|
||||
} catch (e) {
|
||||
// Band-aid for Firefox NS_ERROR_DOM_SECURITY_ERR until fixed.
|
||||
}
|
||||
},
|
||||
|
||||
toParams: function() {
|
||||
|
||||
Reference in New Issue
Block a user