fix: hide account warning after login + improve key storage wording

This commit is contained in:
Baptiste Grob
2021-02-03 11:53:52 +01:00
parent 117d414d6b
commit fab9ca2ad2
8 changed files with 156 additions and 71 deletions

View File

@@ -1,3 +1,5 @@
import { Platform, platformFromString } from "@standardnotes/snjs";
declare const process : {
env: {
NODE_ENV: string | null | undefined
@@ -26,6 +28,10 @@ export function getPlatformString() {
}
}
export function getPlatform(): Platform {
return platformFromString(getPlatformString());
}
let sharedDateFormatter: Intl.DateTimeFormat;
export function dateToLocalizedString(date: Date) {
if (typeof Intl !== 'undefined' && Intl.DateTimeFormat) {