mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
chore: format style injector
This commit is contained in:
parent
cfe313f1d9
commit
800f2187b9
1 changed files with 2 additions and 2 deletions
|
|
@ -12,8 +12,8 @@ if (platform.resolveMeta()) {
|
|||
function init() {
|
||||
// injects a copy of stylesheets so that other extensions(e.g. dark reader) could read
|
||||
function injectStyles(url: string) {
|
||||
var linkElement = document.createElement('link')
|
||||
linkElement.rel = 'stylesheet'
|
||||
const linkElement = document.createElement('link')
|
||||
linkElement.setAttribute('rel', 'stylesheet')
|
||||
linkElement.setAttribute('href', url)
|
||||
document.head.appendChild(linkElement)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue