MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / getPositionErrorMessage

Function getPositionErrorMessage

assets/js/deviceInfo.js:48–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 * @return {String}
47 */
48const getPositionErrorMessage = code => {
49 switch (code) {
50 case 1:
51 return 'Permission denied.';
52 case 2:
53 return 'Position unavailable.';
54 case 3:
55 return 'Timeout reached.';
56 }
57}
58
59/**
60 * Initialize the application.

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected