Update 'canvas.js'

master
poni 4 years ago
parent b5f1a3f729
commit e2f9a26695

@ -7,11 +7,11 @@ return Math.floor(Math.random() * (max - min) + min);
};
function openWindow(c) {
if /* if we're on iOS, open in Apple Maps */
((navigator.platform.indexOf("iPhone") != -1) ||
(navigator.platform.indexOf("iPad") != -1) ||
(navigator.platform.indexOf("iPod") != -1))
window.open(`maps://http://www.google.com/maps/place/${c}`, "_self"); else /* else use Google */
//if /* if we're on iOS, open in Apple Maps */
// ((navigator.platform.indexOf("iPhone") != -1) ||
// (navigator.platform.indexOf("iPad") != -1) ||
// (navigator.platform.indexOf("iPod") != -1))
// window.open(`maps://http://www.google.com/maps/place/${c}`, "_self"); else /* else use Google */
window.open(`http://www.google.com/maps/place/${c}`, "_self");
}

Loading…
Cancel
Save