MCPcopy Create free account
hub / github.com/ampproject/amphtml / isBot

Function isBot

src/preact/utils/platform.js:103–105  ·  view source on GitHub ↗

* Whether the current platform matches a bot user agent. * @return {boolean}

()

Source from the content-addressed store, hash-verified

101 * @return {boolean}
102 */
103 isBot() {
104 return /bot/i.test(self.navigator.userAgent);
105 },
106
107 /**
108 * Returns the major version of the browser.

Callers

nothing calls this directly

Calls 1

testMethod · 0.45

Tested by

no test coverage detected