Anton Shestakov <av6@dwimlabs.net>, Sat, 16 Sep 2017 22:29:17 +0800
Make: use npm update for devel target
package.json says we want coffee-script >= 1.6.1, so that's what `make devel`
should install (the newest version): since .js source is tracked, there's no
risk of running into breaking changes in coffee-script outside of test
environment. But running into such changes during tests is OK and even
potentially desirable.
coffee/favicon.coffee
Permissions: -rw-r--r--
class window.Tram.FaviconApp extends Backbone.View pipColors: Tram.colors.show @canvas = document.createElement('canvas') @listenTo(@model, 'change', @updateFavicon) color = @pipColors[@model.get('show')] ? @pipColors['default'] renderFavicon: (color) -> ctx = @canvas.getContext('2d') ctx.clearRect(0, 0, @canvas.width, @canvas.height) ctx.arc(8, 8, 5.5, 0, Math.PI * 2) @el.href = @canvas.toDataURL()