added download link to tile

This commit is contained in:
Danny Coates 2019-01-23 15:10:09 -08:00
parent 7bf8bab864
commit dece0969c2
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
3 changed files with 56 additions and 41 deletions

View file

@ -1,3 +1,4 @@
/* global Android */
const html = require('choo/html');
const b64 = require('base64-js');
@ -240,6 +241,13 @@ function timeLeft(milliseconds) {
return null;
}
function platform() {
if (typeof Android === 'object') {
return 'android';
}
return 'web';
}
module.exports = {
fadeOut,
delay,
@ -257,5 +265,6 @@ module.exports = {
streamToArrayBuffer,
list,
secondsToL10nId,
timeLeft
timeLeft,
platform
};