Anton Shestakov <av6@dwimlabs.net>, Sat, 14 Jul 2018 19:40:18 +0800
index: try and use a much newer webrtc-adapter 6.2.1
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()