MCPcopy Create free account
hub / github.com/hackmdio/codimd / updateOwner

Function updateOwner

public/js/extra.js:106–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104window.ownerprofile = null
105
106export function updateOwner () {
107 if (ownerui) {
108 if (window.owner && window.ownerprofile && window.owner !== window.lastchangeuser) {
109 const icon = ownerui.children('i')
110 icon.attr('title', window.ownerprofile.name).tooltip('fixTitle')
111 const styleString = `background-image:url(${window.ownerprofile.photo})`
112 if (window.ownerprofile.photo && icon.attr('style') !== styleString) { icon.attr('style', styleString) }
113 ownerui.show()
114 } else {
115 ownerui.hide()
116 }
117 }
118}
119
120// get title
121function getTitle (view) {

Callers 1

updateInfoFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected