added download link to tile
This commit is contained in:
parent
7bf8bab864
commit
dece0969c2
3 changed files with 56 additions and 41 deletions
11
app/utils.js
11
app/utils.js
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue