don't check account usage if you aren't logged in
parent
bbf7ed3827
commit
739903d511
|
@ -1099,6 +1099,7 @@ define([
|
|||
*/
|
||||
var LIMIT_REFRESH_RATE = 30000; // milliseconds
|
||||
common.createUsageBar = function (cb) {
|
||||
if (!isLoggedIn()) { return cb("NOT_LOGGED_IN"); }
|
||||
// getPinnedUsage updates common.account.usage, and other values
|
||||
// so we can just use those and only check for errors
|
||||
var $container = $('<span>', {'class':'limit-container'});
|
||||
|
|
Loading…
Reference in New Issue