A fun part of the talk was live coding. I haven’t done it before, but I felt it went well and was definitely worthwhile. The project was an extension to show the latest blog posts on the Async website, in a toolbar button (aka browser action). Chrome extensions are a lot easier to write than most people imagine, so it was an effective demo to start with a new directory and make it happen. For the record, here’s the extension we hacked up in 15 minutes or so: async.crx. (Styling was not the main focus of this exercise ).
I also did something I’ve been meaning to do for a while: A Venn diagram to illustrate the relationship between extensions, packaged apps, and hosted apps:
Finally, I had a good question about detecting if you’re website is running as an installed app. I couldn’t remember the details, but they are here:
- if (window.chrome && chrome.app && chrome.app.isInstalled)
(Updated the snippet following Johan’s suggestion in the comments.)