added share to tile

This commit is contained in:
Danny Coates
2019-03-09 20:40:06 -08:00
parent edc95f42cb
commit bd61d2fb3e
4 changed files with 37 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
/* global AUTH_CONFIG */
/* global AUTH_CONFIG LOCALE */
import { browserName } from './utils';
async function checkCrypto() {
@@ -90,7 +90,8 @@ export default async function getCapabilities() {
} catch (e) {
account = false;
}
const share = !!navigator.share;
const share =
typeof navigator.share === 'function' && LOCALE.startsWith('en'); // en until strings merge
return {
account,