| 163 | } |
| 164 | |
| 165 | function editorContainer({selector, keyringId, options = {}}) { |
| 166 | if (options.quotedMailIndent === undefined && !options.armoredDraft) { |
| 167 | options.quotedMailIndent = true; |
| 168 | } |
| 169 | if (options.quota) { |
| 170 | // kilobyte -> byte |
| 171 | options.quota = parseInt(options.quota) * 1024; |
| 172 | } |
| 173 | const container = new EditorContainer(selector, keyringId, options); |
| 174 | containers.set(container.id, container); |
| 175 | return container.create(); |
| 176 | } |
| 177 | |
| 178 | async function settingsContainer() { |
| 179 | throw new MvError('The settings container has been deprecated. Use keyring.openSettings() instead to open the settings in a new browser tab.', 'FEATURE_DEPRECATED'); |