1class OsanoTrigger extends window.BAO.CustomElement({ 2 SuperClass: HTMLButtonElement, 3}) { 4 connectedCallback () { 5 super.connectedCallback() 6 } 7 8 setupListeners () { 9 this.handleMouseEnter = this.handleTriggerClick.bind(this) 10 11 this.listeners.add(this, 'click', this.handleTriggerClick) 12 } 13 14 handleTriggerClick () { 15 if (window.Osano) { 16 window.Osano.cm.showDrawer() 17 } 18 } 19} 20 21if (!customElements.get('osano-trigger')) { 22 customElements.define('osano-trigger', OsanoTrigger, { extends: 'button' }) 23}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.