MCPcopy Create free account
hub / github.com/codecombat/codecombat / remindPlayerToTakeBreaks

Function remindPlayerToTakeBreaks

app/core/application.js:200–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198 },
199
200 remindPlayerToTakeBreaks () {
201 if (!me.showChinaRemindToast()) { return }
202 return setInterval(() => noty({
203 text: '你已经练习了一个小时了,建议休息一会儿哦',
204 layout: 'topRight',
205 type: 'warning',
206 killer: false,
207 timeout: 5000
208 }), 3600000)
209 }, // one hour
210
211 trackProductVisit () {
212 if (window.serverSession != null ? window.serverSession.amActually : undefined) { return }

Callers

nothing calls this directly

Calls 1

showChinaRemindToastMethod · 0.80

Tested by

no test coverage detected