fixes and mobile tweaks

This commit is contained in:
ntr
2019-11-05 15:31:52 +11:00
parent dfb796fd50
commit c317627a14
5 changed files with 59 additions and 14 deletions
+4 -4
View File
@@ -12,7 +12,7 @@ const { tutorialVbox } = require('./tutorial.utils');
function registerEvents(store) {
function notify(msg) {
if (Notification && Notification.permission === 'granted') {
if (window.Notification && window.Notification.permission === 'granted') {
const n = new Notification('MNML', {
body: msg,
tag: 'MNML',
@@ -134,12 +134,12 @@ function registerEvents(store) {
}
function setAccount(account) {
if (account) {
if (account && process.env.NODE_ENV !== 'development') {
LogRocket.init('yh0dy3/mnml');
LogRocket.identify(account.id, account);
if (Notification) {
Notification.requestPermission();
if (window.Notification) {
window.Notification.requestPermission();
}
}