MCPcopy Index your code
hub / github.com/codecombat/codecombat / shouldShowAiBotHelp

Function shouldShowAiBotHelp

app/core/utils.js:1746–1757  ·  view source on GitHub ↗
(aceConfig)

Source from the content-addressed store, hash-verified

1744}
1745
1746const shouldShowAiBotHelp = function (aceConfig) {
1747 if (aceConfig.levelChat !== 'none') {
1748 if (me.isAdmin()) {
1749 return true
1750 } else if (me.isHomeUser() && me.shouldShowLevelAIChat()) {
1751 return true
1752 } else if (!me.isHomeUser()) {
1753 return true
1754 }
1755 }
1756 return false
1757}
1758
1759const isMobile = () => {
1760 // First try the modern way - navigator.userAgentData

Callers

nothing calls this directly

Calls 3

isAdminMethod · 0.80
isHomeUserMethod · 0.80
shouldShowLevelAIChatMethod · 0.80

Tested by

no test coverage detected