Skip to content

Commit

Permalink
Merge pull request #435 from VirgilClyne/patch-2
Browse files Browse the repository at this point in the history
fix(Env.js): msg() on Shadowrocket
  • Loading branch information
chavyleung authored Mar 22, 2023
2 parents 2806205 + 5192f78 commit 76ac216
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 8 deletions.
5 changes: 2 additions & 3 deletions Env.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,10 +520,9 @@ function Env(name, opts) {
const toEnvOpts = (rawopts) => {
if (!rawopts) return rawopts
if (typeof rawopts === 'string') {
if (this.isLoon()) return rawopts
if (this.isLoon() || this.isShadowrocket()) return rawopts
else if (this.isQuanX()) return { 'open-url': rawopts }
else if (this.isSurge() || this.isShadowrocket() || this.isStash())
return { url: rawopts }
else if (this.isSurge() || this.isStash()) return { url: rawopts }
else return undefined
} else if (typeof rawopts === 'object') {
if (this.isLoon()) {
Expand Down
2 changes: 1 addition & 1 deletion Env.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 76ac216

Please sign in to comment.