From 88613ded7f7f38014f99170e2726149510889605 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Thu, 21 Apr 2016 10:23:21 +0200 Subject: Fix StorageNotAvailable exception string detection --- apps/files/js/filelist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 00cfaf53013..e37eba5dcb3 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1372,7 +1372,7 @@ if (result.data.error === 'authentication_error' || result.data.error === 'token_expired' || result.data.error === 'application_not_enabled' || - result.data.exception === '\\OCP\\Files\\StorageNotAvailableException' + (result.data.exception && result.data.exception.indexOf('StorageNotAvailableException') > 0) ) { OC.redirect(OC.generateUrl('apps/files')); } -- cgit v1.2.3