Comments (5)
Please try [email protected]
which uses [email protected]
. I've just published both packages to NPM. Documentation is provided at the link below which should hopefully help you resolve your OS-specific issue. Let me know if you have any issues.
Docs: https://github.com/niftylettuce/email-templates#open-email-previews-in-firefox
from test-preview-emails-cross-browsers-ios-simulator-nodejs-javascript.
People looking for a solution could change the default behavior of xdg for text/html. Since you probably want your browser to open html files instead of your favorite code editor.
xdg-mime default chrome.desktop text/html
Note: change chrome.desktop to your browser of choice.
from test-preview-emails-cross-browsers-ios-simulator-nodejs-javascript.
Yes but in this case it doesn't work because vs code resets xdg-mime default after we launch it.
This bug is already reported. But if we could configure directly preview-email, we could use any software to preview the email.
from test-preview-emails-cross-browsers-ios-simulator-nodejs-javascript.
How would you like to directly configure this? Just be able to pass a command that gets used instead of xdg-open
? Or?...
Related #5
from test-preview-emails-cross-browsers-ios-simulator-nodejs-javascript.
Maybe we could give the opn
command a configuration object, then we can use all available configurations in opn
. For example :
// Specify the app to open in
opn('http://sindresorhus.com', {app: 'firefox'});
So instead of this :
if (open) await opn(filePath, { wait: false });
we would have something like
if (open) await opn(filePath, opnConfig);
from test-preview-emails-cross-browsers-ios-simulator-nodejs-javascript.
Related Issues (20)
- add jsonld preview support
- Pugjs Uglifyjs dependency issues (Webpack)
- Support other template engines (handlebars, ejs...) HOT 1
- Unnecessary console.log HOT 3
- The result of email rendering is within <iframe> tage HOT 1
- Problem with WSL path HOT 1
- What's the reasoning behind adding google analytics in the template? HOT 2
- Option `open` is incorrectly handled and/or documented HOT 1
- how to only show preview HTML ?
- Mailparser update HOT 1
- Attached images with CID are not displayed HOT 1
- Styles overridden HOT 2
- [fix] Define mailparser dependency with ~ instead of ^ HOT 1
- [fix] preview-email is failing due to require('node:child_process') is not getting processed on mac intel HOT 2
- [fix] Links in previews don't open on click
- Dependency package of display-notification version 2.0.0 having vulnerability (Versions of the package semver before 7.5.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range) HOT 1
- Doesn't show on Ubuntu? HOT 4
- Would be amazing to be able to change the template design as a option. HOT 3
- Browser doesn't open in WSL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from test-preview-emails-cross-browsers-ios-simulator-nodejs-javascript.