Switch to using utils.browserName

This commit is contained in:
Donovan Preston 2019-01-16 16:20:15 -05:00
parent af61434b72
commit c90d811087

View File

@ -3,7 +3,14 @@
const html = require('choo/html');
const raw = require('choo/html/raw');
const assets = require('../../common/assets');
const { bytes, copyToClipboard, list, percent, timeLeft } = require('../utils');
const {
browserName,
bytes,
copyToClipboard,
list,
percent,
timeLeft
} = require('../utils');
const expiryOptions = require('./expiryOptions');
function expiryInfo(translate, archive) {
@ -143,7 +150,7 @@ function archiveDetails(translate, archive) {
module.exports = function(state, emit, archive) {
const copyOrShare =
typeof window.Android !== 'object'
browserName() !== 'android-app'
? html`
<button
class="text-blue hover:text-blue-dark focus:text-blue-darker self-end font-medium flex items-center"