adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.25k stars 7.63k forks source link

NativeApp openURLInDefaultBrowser doesn't work with variable arguments #15284

Open RishiMenon2004 opened 3 years ago

RishiMenon2004 commented 3 years ago

So, I decided to write an extension, and I hit a snag while trying to use the NativeApp module's function openURLInDefaultBrowser. NativeApp.openURLInDefaultBrowser(generateURL(currentEditorText)); doesn't seem to open a tab or a window in the default browser. I'm on a mac with OSX 10.14.6, and the browser is Opera GX. Brackets : Release 1.14 build 1.14.2-17770 (release-1.14.2 f71f00acc).

RishiMenon2004 commented 3 years ago

oh and openLiveBrowser doesn't work either

RishiMenon2004 commented 3 years ago

._. it's working now, idfk why, sorry for the trouble if any

RishiMenon2004 commented 3 years ago

Ok, so, it doesn't work when I use variables as the argument for the URL, but when I use direct strings it does