##// END OF EJS Templates
release: updated pip2nix output for 4.14.1
release: updated pip2nix output for 4.14.1

File last commit:

r3192:689a0c93 merge stable
r3203:9b5b795a stable
Show More
rhodecode-favicon.js
33 lines | 727 B | application/javascript | JavascriptLexer
js: migrate to polymer 3.x
r3173 import {PolymerElement, html} from '@polymer/polymer/polymer-element.js';
export class RhodecodeFavicon extends PolymerElement {
static get is() {
return 'rhodecode-favicon';
}
static get properties() {
return {
favicon: Object,
counter: {
type: Number,
observer: '_handleCounter'
}
}
}
connectedCallback() {
super.connectedCallback();
this.favicon = new Favico({
type: 'rectangle',
animation: 'none'
});
}
_handleCounter(newVal, oldVal) {
this.favicon.badge(this.counter);
}
}
customElements.define(RhodecodeFavicon.is, RhodecodeFavicon);