()
| 179 | } |
| 180 | |
| 181 | function updateUserCreditsMessage () { |
| 182 | if (globalVar.fetchingCreditsString) return |
| 183 | |
| 184 | globalVar.fetchingCreditsString = true |
| 185 | levelChatCreditsString().then(msg => { |
| 186 | if (msg !== globalVar.userCreditsMessage) { |
| 187 | globalVar.userCreditsMessage = msg |
| 188 | Backbone.Mediator.publish('auth:user-credits-message-updates', {}) |
| 189 | } |
| 190 | globalVar.fetchingCreditsString = false |
| 191 | }) |
| 192 | } |
| 193 | function hasSeenParentBuyingforSelfPrompt () { |
| 194 | return !!localStorage.load(parentBuyingforSelfPromptKey()) |
| 195 | } |
nothing calls this directly
no test coverage detected