mirror of
https://github.com/axllent/mailpit.git
synced 2025-07-13 01:20:22 +02:00
Bugfix: Delay 200ms to set target="_blank"
for all rendered email links
Fixes #22
This commit is contained in:
@ -66,8 +66,8 @@ export default {
|
|||||||
document.activeElement.blur(); // blur focus
|
document.activeElement.blur(); // blur focus
|
||||||
document.getElementById('message-view').scrollTop = 0;
|
document.getElementById('message-view').scrollTop = 0;
|
||||||
|
|
||||||
// delay until vue has rendered
|
// delay 0.2s until vue has rendered the iframe content
|
||||||
self.$nextTick(function () {
|
window.setTimeout(function () {
|
||||||
let p = document.getElementById('preview-html');
|
let p = document.getElementById('preview-html');
|
||||||
if (p) {
|
if (p) {
|
||||||
// make links open in new window
|
// make links open in new window
|
||||||
@ -82,7 +82,7 @@ export default {
|
|||||||
}
|
}
|
||||||
self.resizeIframes();
|
self.resizeIframes();
|
||||||
}
|
}
|
||||||
});
|
}, 200);
|
||||||
|
|
||||||
// html highlighting
|
// html highlighting
|
||||||
window.Prism = window.Prism || {};
|
window.Prism = window.Prism || {};
|
||||||
|
Reference in New Issue
Block a user