Switch to using utils.browserName
This commit is contained in:
parent
af61434b72
commit
c90d811087
1 changed files with 9 additions and 2 deletions
|
@ -3,7 +3,14 @@
|
||||||
const html = require('choo/html');
|
const html = require('choo/html');
|
||||||
const raw = require('choo/html/raw');
|
const raw = require('choo/html/raw');
|
||||||
const assets = require('../../common/assets');
|
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');
|
const expiryOptions = require('./expiryOptions');
|
||||||
|
|
||||||
function expiryInfo(translate, archive) {
|
function expiryInfo(translate, archive) {
|
||||||
|
@ -143,7 +150,7 @@ function archiveDetails(translate, archive) {
|
||||||
|
|
||||||
module.exports = function(state, emit, archive) {
|
module.exports = function(state, emit, archive) {
|
||||||
const copyOrShare =
|
const copyOrShare =
|
||||||
typeof window.Android !== 'object'
|
browserName() !== 'android-app'
|
||||||
? html`
|
? html`
|
||||||
<button
|
<button
|
||||||
class="text-blue hover:text-blue-dark focus:text-blue-darker self-end font-medium flex items-center"
|
class="text-blue hover:text-blue-dark focus:text-blue-darker self-end font-medium flex items-center"
|
||||||
|
|
Loading…
Reference in a new issue