Giter Club home page Giter Club logo

Comments (5)

niftylettuce avatar niftylettuce commented on May 23, 2024 2

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.

bennetstankidis avatar bennetstankidis commented on May 23, 2024

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.

slevy85 avatar slevy85 commented on May 23, 2024

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.

niftylettuce avatar niftylettuce commented on May 23, 2024

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.

slevy85 avatar slevy85 commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.