Scott Whittaker

Software Engineer

Day job React | side projects Svelte

Posts

Expose Sveltekit build to your network

When running a Sveltekit application locally it is not exposed to your network by default. If you want to test your application on other devices on your network then you need to tell Sveltekit to expose the application with the --host flag.

Download old version of chrome

For those of us who are not able to work with the latest version of Chrome all the time, it is sometimes necessary to test in an older version. Where do we get that from?

DOM element id as global property

An element with an id is automatically added as a global property to the window object. This is an outdated practice but still exists in some old scripts.

React displays 0 when using logical AND (&&)

When using logical AND, React can display 0 in the UI in certain circumstances and this might not be what you expect. It is however the correct behaviour and I was not aware why.

CSS Border Radius Generator

Just another CSS border radius generator. A nice excuse to write a little utility in Svelte.

Git Amend

How to amend a commit with git

Git Reset

How to reset with git

Default video controls in Firefox

How to inspect the default video controls in Firefox - see the markup and styles that make up the player controls.

Commit Guidelines

Some recommendations for a more rigid approach to commit messages

Sapper Router Demo

A simple Sapper router demo including examples of nested routes