zachleat.com is one of the many independent Mastodon servers you can use to participate in the fediverse.

Server stats:

1
active users

@zachleat Gotta say, I love that you've set this up so users can supply all of their own strings. It makes this very #i18n friendly!

@tomayac For sure! I’ll add some better links in the README too

@zachleat Just to be sure, I wasn’t fishing for this. Simply was having a happy moment when I studied the source code.

@tomayac Ah, yeah I know—I thought I could do a little better though 🙌

@zachleat please help me learn - in what circumstances does globalThis work that window wouldn't (specific to web components) and when would someone use the registry argument to supply their own?

It all seems reasonable, but I just don't know enough about what the extra considerations are and would appreciate your expertise.

@scrwd I think they’re basically the same—it’s just an academic thing compatible with more environments (though I’ll probably only use it in the browser)

mathiasbynens.be/notes/globalt

mathiasbynens.beA horrifying globalThis polyfill in universal JavaScript · Mathias Bynens

@zachleat Thanks for webcare-webshare, great work as usual. I have made a similar component inspired by this and would love to know what you think of my implementation. nigelotoole.github.io/share-ur

Share URLShare URLShare a URL with Web Share and copying to the clipboard

@nigelotoole looks great! That maintainSize option 😘