Remove use of deprecated function

This commit is contained in:
Florine W. Dekker 2021-04-28 13:29:05 +02:00
parent 7a6f0eacc3
commit 5dfa6ea851
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
5 changed files with 7 additions and 8 deletions

View File

@ -8,7 +8,7 @@ module.exports = grunt => {
},
copy: {
html: {
files: [{expand: true, cwd: "src/main/", src: "**/*.html", dest: "dist/"}]
files: [{expand: true, cwd: "src/main/", src: "**/*.html", dest: "dist/", flatten: true}]
},
},
focus: {
@ -18,7 +18,7 @@ module.exports = grunt => {
},
replace: {
dev: {
src: ["./dist/*.html", "./dist/*.js"],
src: ["./dist/**/*.html", "./dist/**/*.js"],
replacements: [
{
from: "%%VERSION_NUMBER%%",

BIN
package-lock.json generated

Binary file not shown.

View File

@ -1,6 +1,6 @@
{
"name": "privacy-policy",
"version": "1.2.1",
"version": "1.2.2",
"description": "The privacy policy of my website",
"author": "Felix W. Dekker",
"browser": "dist/bundle.js",
@ -16,7 +16,7 @@
"deploy": "grunt deploy"
},
"devDependencies": {
"grunt": "^1.3.0",
"grunt": "^1.4.0",
"grunt-cli": "^1.4.2",
"grunt-contrib-clean": "^2.0.0",
"grunt-contrib-copy": "^1.0.0",
@ -24,7 +24,7 @@
"grunt-focus": "^1.0.0",
"grunt-text-replace": "^0.4.0",
"grunt-webpack": "^4.0.2",
"webpack": "^5.33.2",
"webpack": "^5.36.0",
"webpack-cli": "^4.6.0"
}
}

View File

@ -19,7 +19,7 @@
<noscript>
<img src="https://stats.fwdekker.com/count?p=/privacy/" alt="Counting pixel" />
<p style="color: red; font-weight: bold;">
<p>
This website does not function fully if JavaScript is disabled.
Please check the <a href="https://www.enable-javascript.com/">
instructions on how to enable JavaScript in your web browser</a>.

View File

@ -1,5 +1,5 @@
// noinspection JSUnresolvedVariable
const {$, doAfterLoad, footer, header, nav, showPage} = window.fwdekker;
const {$, doAfterLoad, footer, header, nav} = window.fwdekker;
doAfterLoad(() => {
@ -10,5 +10,4 @@ doAfterLoad(() => {
version: "v%%VERSION_NUMBER%%",
privacyPolicyURL: null
}));
showPage();
});