Bilibili-Evolved/min/custom-navbar-simple-link.min.js
2020-10-30 17:42:34 +08:00

1 line
289 B
JavaScript

(()=>(t,e)=>{const{NavbarComponent:n}=e.import("custom-navbar-component");class s extends n{constructor(t,e,n){super();this.linkName=n;this.html=t;this.href=e;this.touch=false;this.active=document.URL.startsWith(e)}get name(){return this.linkName+"Link"}}return{export:{SimpleLink:s}}})();