]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix bug on browsers like rekonq which stopped execution of javascript
authorSimon Birnbach <simon@simon-birnbach.de>
Mon, 7 May 2012 13:03:15 +0000 (15:03 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Mon, 7 May 2012 15:35:23 +0000 (17:35 +0200)
core/js/js.js

index 44255ed66706810021ce5ad9f1a0f3156520b799..6588de31e9a3f0a1c4d164b380512ea7256ad6f5 100644 (file)
@@ -160,7 +160,7 @@ OC.search.lastResults={};
 OC.addStyle.loaded=[];
 OC.addScript.loaded=[];
 
-if(typeof localStorage !='undefined'){
+if(typeof localStorage !='undefined' && localStorage != null){
        //user and instance awere localstorage
        OC.localStorage={
                namespace:'oc_'+OC.currentUser+'_'+OC.webroot+'_',