diff options
Diffstat (limited to 'apps/files_external/js/settings.js')
-rw-r--r-- | apps/files_external/js/settings.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index 232d5b96d5b..6854b40e87d 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -983,7 +983,8 @@ MountConfigListView.prototype = { }; $(document).ready(function() { - var encryptionEnabled = JSON.parse($('#files_external').attr('data-encryption-enabled')); + var enabled = $('#files_external').attr('data-encryption-enabled'); + var encryptionEnabled = (enabled ==='true')? true: false; var mountConfigListView = new MountConfigListView($('#externalStorage'), { encryptionEnabled: encryptionEnabled }); |