This commit is contained in:
Kovid Goyal 2015-11-17 21:18:35 +05:30
parent 4a3a104c4c
commit 817d966e3c
2 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ class UserSessionData(SessionData):
if self.has_changes: if self.has_changes:
ajax_send('interface-data/set-session-data', self.changes, def(end_type, xhr, ev): ajax_send('interface-data/set-session-data', self.changes, def(end_type, xhr, ev):
if end_type != 'load': if end_type != 'load':
console.error('Failed to send session data to server: ' + xhr.error_string) console.error('Failed to send session data to server: ' + xhr.error_html)
) )
self.changes = {} self.changes = {}
self.has_changes = False self.has_changes = False

View File

@ -22,7 +22,7 @@ def on_library_loaded(end_type, xhr, ev):
if xhr.status == 401: if xhr.status == 401:
p.innerHTML = _('You are not authorized to view this site') p.innerHTML = _('You are not authorized to view this site')
else: else:
p.innerHTML = xhr.error_string p.innerHTML = xhr.error_html
document.body.appendChild(p) document.body.appendChild(p)
def on_library_load_progress(loaded, total): def on_library_load_progress(loaded, total):