Thomas Steiner (@tomayac)

Now at @tomayac@toot.cafe

The below is an off-site archive of all tweets posted by @tomayac ever

August 17th, 2021

@anthony_ricaud @yoavweiss It sounds like you’d be better served by a browser extension for a complex-ish setup like this.

via Twitter Web App in reply to anthony_ricaud

@sid_vishnoi @kennethrohde @dandclark1 You can `try…catch` a dynamic import assertion to check if the type is supported:

“`js
const type = ‘foo’;
try {
await import(‘./foo.json’, {
assert: { type }
});
} catch (err) {
if (https://t.co/C3OTM

via Twitter Web App

Using CSS Module Scripts to import stylesheets https://t.co/qzWWYCYCVK, by @dandclark1.

“`js
import sheet from ‘./styles.css’ assert { type: ‘css’ };
document.adoptedStyleSheets = [sheet];
shadowRoot.adoptedStyleSheets = [sheet];
“`

via Twitter Web App

@Gian_albert02 @ChromiumDev That’s the UI of the @brave browser. You’re tweeting to Chrome.

via Twitter Web App in reply to Gian_albert02

@pepelsbey_ The problem with toggles is that you’re actively fighting the browser if you choose a theme different than the system theme; there is just no way around it. FWIW, my toggle supports both approaches, the `class` attribute or the `link[media]` a

via Twitter Web App

@Gian_albert02 @ChromiumDev This is the tabs overview that you have chosen to fill with new tabs. In the general case this overview looks different. 😃

via Twitter for iPhone in reply to Gian_albert02

RT @ChromiumDev: Help @tomayac by answering a short (promised!) survey 🔋 about his efforts to reboot the 🔶 Network Information API: https:/…

via Twitter Web App