mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Update dependencies
This commit is contained in:
parent
80ad4fdbcc
commit
13065dd926
7 changed files with 709 additions and 418 deletions
|
|
@ -254,6 +254,14 @@ const timeOutActionSecond = (function() {
|
|||
|
||||
export {timeOutAction, timeOutActionSecond};
|
||||
|
||||
/**
|
||||
* @param {any} m
|
||||
* @returns {any}
|
||||
*/
|
||||
export function deModule(m) {
|
||||
return (m && m.default ? m.default : m) || '';
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {boolean}
|
||||
*/
|
||||
|
|
@ -629,7 +637,7 @@ export function previewMessage({title, subject, date, fromCreds, toCreds, toLabe
|
|||
|
||||
const html = bodyClone ? bodyClone.html() : '';
|
||||
|
||||
doc.write(require('Html/PreviewMessage.html')
|
||||
doc.write(deModule(require('Html/PreviewMessage.html'))
|
||||
.replace('{{title}}', encodeHtml(title))
|
||||
.replace('{{subject}}', encodeHtml(subject))
|
||||
.replace('{{date}}', encodeHtml(date))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue