diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-12-16 22:21:16 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-12-16 22:21:16 +0200 |
commit | f1ed6304a4c3bfcd1c778b0c43cafe6808829286 (patch) | |
tree | 5c2ecf6231e906c1dc54b6777b345281d14a9483 /server/migrations.js | |
parent | a42d9871bd420ba0647a590ad2a131822455a905 (diff) | |
download | wekan-f1ed6304a4c3bfcd1c778b0c43cafe6808829286.tar.gz wekan-f1ed6304a4c3bfcd1c778b0c43cafe6808829286.tar.bz2 wekan-f1ed6304a4c3bfcd1c778b0c43cafe6808829286.zip |
- Admin Panel / Layout / Custom HTML after <body> start, and Custom HTML before </body> end.
In progress, does not work yet.
Thanks to xet7 !
Diffstat (limited to 'server/migrations.js')
-rw-r--r-- | server/migrations.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/server/migrations.js b/server/migrations.js index 56d2858d..2512b40c 100644 --- a/server/migrations.js +++ b/server/migrations.js @@ -374,3 +374,27 @@ Migrations.add('add-hide-logo', () => { }, }, noValidateMulti); }); + +Migrations.add('add-custom-html-after-body-start', () => { + Settings.update({ + customHTMLafterBodyStart: { + $exists: false, + }, + }, { + $set: { + customHTMLafterBodyStart:'', + }, + }, noValidateMulti); +}); + +Migrations.add('add-custom-html-before-body-end', () => { + Settings.update({ + customHTMLbeforeBodyEnd: { + $exists: false, + }, + }, { + $set: { + customHTMLbeforeBodyEnd:'', + }, + }, noValidateMulti); +}); |