MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / isChrome

Method isChrome

src/openlayers/mapping/WebMap.js:5407–5410  ·  view source on GitHub ↗

* @private * @function WebMap.prototype.isChrome * @description 判断当前浏览器是否为谷歌 * @returns {boolean}

()

Source from the content-addressed store, hash-verified

5405 * @returns {boolean}
5406 */
5407 isChrome() {
5408 let userAgent = navigator.userAgent;
5409 return userAgent.indexOf('Chrome') > -1;
5410 }
5411
5412 /**
5413 * @private

Callers 1

isSupportWebpMethod · 0.95

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected