Browse Source

Remove use of deprecated function

master
F.W. Dekker 5 months ago
parent
commit
5dfa6ea851
Signed by: FWDekker GPG Key ID: B1B567AF58D6EE0F
  1. 4
      Gruntfile.js
  2. 2652
      package-lock.json
  3. 6
      package.json
  4. 2
      src/main/index.html
  5. 3
      src/main/js/main.js

4
Gruntfile.js

@ -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%%",

2652
package-lock.json

File diff suppressed because it is too large

6
package.json

@ -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"
}
}

2
src/main/index.html

@ -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>.

3
src/main/js/main.js

@ -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();
});

Loading…
Cancel
Save