Coder Social home page Coder Social logo

links not working correctly about lax HOT 7 CLOSED

brandly avatar brandly commented on September 27, 2024
links not working correctly

from lax.

Comments (7)

srirangan avatar srirangan commented on September 27, 2024 1

Thank you @brandly

from lax.

srirangan avatar srirangan commented on September 27, 2024

Yep, I see this as well. I don't mind the behavior, as long as there's a back button.

But I guess the expected behavior is to open in default browser.

from lax.

brandly avatar brandly commented on September 27, 2024

But I guess the expected behavior is to open in default browser.

Yes! I swear it used to behave like this. I don’t think I’ve touched anything over there in a while, so maybe updating Electron itself broke it. It’s probably not a difficult fix.

from lax.

srirangan avatar srirangan commented on September 27, 2024

I see you're using shell.openExternal which seems correct. Perhaps the event is bubbling up to react-linkify nevertheless.

from lax.

srirangan avatar srirangan commented on September 27, 2024

Curious if we need handleLink() at all. Does does passing target: '_blank' not behave within the Electron shell?

from lax.

brandly avatar brandly commented on September 27, 2024

@srirangan thanks for chiming in, helped motivate me to actually do something lol

the latest version of react-linkfy doesn't seem to take a properties prop at all. instead of figuring out if there's a new approach, i just rolled back.

after rolling back, i tried the target: '_blank' approach, since i thought that'd be nice. however, that opened a second electron window with the site in it. with openExternal, it takes you to your real browser.

from lax.

brandly avatar brandly commented on September 27, 2024

Lax v0.6.5 should be out soon. try it out and lmk if it works well for you. thanks again!

from lax.

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.