From 4f9d7b8311dd8d1d586cff0b850e4c3cef7083e4 Mon Sep 17 00:00:00 2001 From: "Felix W. Dekker" Date: Wed, 28 Apr 2021 12:21:25 +0200 Subject: [PATCH] Add deprecation notice --- package.json | 2 +- src/main/js/main.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index caf31c5..9b5a82d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fwdekker/template", - "version": "2.2.3", + "version": "2.2.4", "description": "The base template for pages on fwdekker.com.", "author": "Felix W. Dekker", "license": "MIT", diff --git a/src/main/js/main.js b/src/main/js/main.js index fcfc144..7eb8ac3 100644 --- a/src/main/js/main.js +++ b/src/main/js/main.js @@ -191,6 +191,8 @@ const footerLink = function(prefix, text, url, suffix) { /** * Unhides the main element on the page and applies default display styling. + * + * @deprecated Will be removed in the near future. Just use `$("main").classList.remove("hidden")` yourself. */ const showPage = function() { const main = $("main");