Hacker News new | ask | show | jobs
by lox 4606 days ago
I tried creating an "Add to Pinboard" backtick command:

https://gist.github.com/lox/7312183

The script works fine in Chrome's console, but fails as a backtick script.

Aside from that, icons served from http show mixed content warnings on https pages. Would be good to require icons are either data uris or https.

1 comments

Ah, thanks for reporting. It seems that having comments in a command messes up the execution, that's obviously something I'm going to fix ASAP. For now, just remove the comments and it should work.

You're right about the mixed content thing, I should make sure to use HTTPS urls on all icons. Data URIs would be convenient, but it would make the amount of data that is fetched on first run (to get all default commands) unnecessarily big.