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

BIN
package-lock.json generated

Binary file not shown.

View File

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

View File

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

View File

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