MCPcopy Index your code
hub / github.com/ClearURLs/Addon / checkOSAndroid

Function checkOSAndroid

core_js/tools.js:74–82  ·  view source on GitHub ↗

* Check if it is an android device. * @return bool

()

Source from the content-addressed store, hash-verified

72 * @return bool
73 */
74async function checkOSAndroid() {
75 if (os === undefined || os === null || os === "") {
76 await chrome.runtime.getPlatformInfo(function (info) {
77 os = info.os;
78 });
79 }
80
81 return os === "android";
82}
83
84/**
85 * Extract the host without port from an url.

Callers 3

changeIconFunction · 0.85
setBadgedStatusFunction · 0.85
increaseBadgedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected