This commit is contained in:
parent
ce81231627
commit
0bb518341d
@ -57,7 +57,8 @@
|
|||||||
function stretchText() {
|
function stretchText() {
|
||||||
let container = document.getElementById("logo-container")
|
let container = document.getElementById("logo-container")
|
||||||
let textElement = document.getElementById("upper")
|
let textElement = document.getElementById("upper")
|
||||||
|
if (!textElement) return
|
||||||
|
if (!container) return
|
||||||
let containerWidth = container.offsetWidth
|
let containerWidth = container.offsetWidth
|
||||||
let textWidth = textElement.offsetWidth
|
let textWidth = textElement.offsetWidth
|
||||||
let currentLetterSpacing = parseFloat(
|
let currentLetterSpacing = parseFloat(
|
||||||
|
Loading…
Reference in New Issue
Block a user