fix(sharing): Better Tweet syntax

Angular bindings would fail to parse in Tweets if the expression evaluated to something with a space in it. Adding quotes stretches the Tweet by two characters, but addresses the issue. Commit also takes out a spurious console message from the Notifications service.
This commit is contained in:
Sabe Jones
2015-11-10 17:07:34 -05:00
parent a393cdc94b
commit 63f00d3643
7 changed files with 6 additions and 6 deletions

View File

@@ -66,6 +66,7 @@ habitrpg.controller('NotificationCtrl',
$rootScope.playSound('Level_Up');
if (User.user._tmp && User.user._tmp.drop && (User.user._tmp.drop.type === 'Quest')) return;
if (after === 3) return; // Drop system unlock. FIXME can we do this without hardcoding?
if (after === 10) return; // Class system unlock. FIXME as above
if (after === 50) return; // Orb of Rebirth unlock FIXME as above
if (!User.user.preferences.suppressModals.levelUp) $rootScope.openModal('levelUp', {controller:'UserCtrl', size:'sm'});
});