]> git.mxchange.org Git - friendica.git/commitdiff
Fix JS error when no acl is defined
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 9 Sep 2018 13:54:54 +0000 (09:54 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Sun, 9 Sep 2018 13:54:54 +0000 (09:54 -0400)
view/js/main.js

index 4788d90a830cc6e4296c024d66d956253b42024f..4ccbc8044ebb20b636b8cb824635c8fc75de910d 100644 (file)
@@ -305,7 +305,9 @@ $(function() {
        // Asynchronous calls are deferred until the very end of the page load to ease on slower connections
        window.addEventListener("load", function(){
                NavUpdate();
-               acl.get(0, 100);
+               if (typeof acl !== 'undefined') {
+                       acl.get(0, 100);
+               }
        });
 
        // Allow folks to stop the ajax page updates with the pause/break key