Commit 3f280889 authored by marius david's avatar marius david
Browse files

Fixed an error due to not there being a notice

parent f5c93364
Loading
Loading
Loading
Loading
+23 −21
Original line number Diff line number Diff line
@@ -530,6 +530,7 @@ function generateAtlasAll(atlas = atlasAll) {
// Notice system

const noticeEl = document.querySelector("#headerNotice")
if (noticeEl) {
	const noticeButton = noticeEl.querySelector('[role=button]')
	const noticeText = noticeEl.querySelector('p').textContent.trim()

@@ -555,3 +556,4 @@ noticeEl.querySelector('[role=button]').addEventListener('click', () => {
		window.removeEventListener('resize', resizeGlobalTopPadding)
		document.body.style.setProperty("--global-top-padding", null)
	})
}
 No newline at end of file
+2 −6
Original line number Diff line number Diff line
@@ -339,12 +339,8 @@ <h6>Need Help?</h6>
							<label for="descriptionField" class="form-label">Description</label>
							<textarea id="descriptionField" class="form-control overflow-hidden" placeholder="A short description to be understood by everyone."></textarea>
						</div>
						<label id="websiteLabel" class="form-label">Website</label>
						<div id="websiteGroup" class="mb-3 d-flex flex-column gap-2"></div>
						<label id="subredditLabel" class="form-label">Subreddit</label>
						<div id="subredditGroup" class="mb-3 d-flex flex-column gap-2"></div>
						<label id="discordLabel" class="form-label">Discord</label>
						<div id="discordGroup" class="mb-3 d-flex flex-column gap-2"></div>
						<div id="linkContainer">
						</div>
						<!-- <label id="wikiLabel" class="form-label">
							<a class="text-decoration-none" href="https://place-wiki.stefanocoding.me/" target="_blank">
								<span class="text-body">r/place Wiki</span>