[alfred] use https by default for open in browser workflow

pull/41/head
Alpha Chen 2 years ago
parent 534c80f9ce
commit 89d5d1b9f5

@ -356,7 +356,7 @@
<key>script</key> <key>script</key>
<string>url = ARGV.first <string>url = ARGV.first
url = `pbpaste`.chomp if url.empty? url = `pbpaste`.chomp if url.empty?
url = "http://#{url}" unless url =~ %r|^[\w]+://| url = "https://#{url}" unless url =~ %r|^[\w]+://|
print url</string> print url</string>
<key>scriptargtype</key> <key>scriptargtype</key>
<integer>1</integer> <integer>1</integer>

Loading…
Cancel
Save