Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5b4f6b0 authored by Ronak Patel's avatar Ronak Patel
Browse files

lint fix

parent 1538eb6f
Loading
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -10,11 +10,13 @@ document.addEventListener('DOMContentLoaded', function() {
	const img = createImageElement(APPLICATION_NAME)
	const textNode = createTextNode(APPLICATION_NAME)
	const link = createLinkElement(APPLICATION_NAME)
	const closeButton = createCloseButton()

	contentDiv.appendChild(img)
	contentDiv.appendChild(textNode)
	newDiv.appendChild(contentDiv)
	newDiv.appendChild(link)
	newDiv.appendChild(closeButton)
	insertIntoDOM(newDiv)
	// Measure the height after the element is inserted into the DOM
	const banner = document.getElementById('business-banner')
@@ -153,6 +155,17 @@ function createLinkElement(appName) {
	link.style.display = 'block'
	return link
}
/**
 *
 * @param appName
 */
function createCloseButton() {
	const span = document.createElement('span')
	const labelText = 'X'
	span.textContent = labelText
	span.style.display = 'block'
	return span
}

/**
 *