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

Commit 31eab53b authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

added text Node

parent afa347d4
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -11,7 +11,8 @@ document.addEventListener('DOMContentLoaded', function() {
	// Add the img element to the paragraph
	newParagraph.appendChild(img)

	newParagraph.textContent = ' ' + translatedText
	const textNode = document.createTextNode(' ' + translatedText)
	newParagraph.appendChild(textNode)

	googleContent.insertBefore(newParagraph, googleContent.querySelector('h3'))
})
@@ -19,9 +20,12 @@ document.addEventListener('DOMContentLoaded', function() {
/**
 *
 * @param appName
 * @return {HTMLImageElement}
 */
function createImageElement(appName) {
	const img = document.createElement('img')
	img.src = generateUrl('/custom_apps/' + appName + '/img/warning.svg')
	img.alt = 'Warning'
	img.style.verticalAlign = 'middle'
	return img
}