MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / getChromeVersion

Method getChromeVersion

src/openlayers/mapping/WebMap.js:5430–5434  ·  view source on GitHub ↗

* @private * @function WebMap.prototype.getChromeVersion * @description 获取谷歌浏览器版本号 * @returns {number}

()

Source from the content-addressed store, hash-verified

5428 * @returns {number}
5429 */
5430 getChromeVersion() {
5431 let userAgent = navigator.userAgent.toLowerCase(),
5432 version = userAgent.match(/chrome\/([\d.]+)/);
5433 return +version[1];
5434 }
5435
5436 /**
5437 * @private

Callers 1

isSupportWebpMethod · 0.95

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected