mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-14 11:44:54 +08:00
8 lines
273 B
JavaScript
8 lines
273 B
JavaScript
import { AskPopupView } from 'View/Popup/Ask';
|
|
|
|
export const Passphrases = new WeakMap();
|
|
|
|
Passphrases.ask = async (key, sAskDesc, btnText) =>
|
|
Passphrases.has(key)
|
|
? {password:Passphrases.get(key)/*, remember:false*/}
|
|
: await AskPopupView.password(sAskDesc, btnText);
|