* missing type declarations for @polkadot/phishing * phishing landing page * Update packages/extension-base/src/background/types.ts * wording make it short * fix build * add test for xml pdf utils * fix export * Update packages/extension-base/src/utils/isXmlOrPdf.ts * use Trans from i18n * alpha ordering * i18nKey * lint * move pdf and xml detection to enable to prevent unwanted redirection * styled component refactoring * import odering * remove a css hack :) Co-authored-by: Github Actions <action@github.com>
19 lines
524 B
TypeScript
19 lines
524 B
TypeScript
// Copyright 2019-2020 @polkadot/extension-base authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
const ALLOWED_PATH = ['/', '/account/restore-json'] as const;
|
|
const PORT_CONTENT = 'content';
|
|
const PHISHING_PAGE_REDIRECT = '/phishing-page-detected';
|
|
const PORT_EXTENSION = 'extension';
|
|
const PASSWORD_EXPIRY_MIN = 15;
|
|
const PASSWORD_EXPIRY_MS = PASSWORD_EXPIRY_MIN * 60 * 1000;
|
|
|
|
export {
|
|
ALLOWED_PATH,
|
|
PASSWORD_EXPIRY_MIN,
|
|
PASSWORD_EXPIRY_MS,
|
|
PHISHING_PAGE_REDIRECT,
|
|
PORT_CONTENT,
|
|
PORT_EXTENSION
|
|
};
|