Fix missing inline authorship colors

The hex2rgb function seems to previously have been available globally.
It probably got lost in the great Webpack refactoring and nobody noticed
 that.

 This copies the function into its own file (to make importing it easy)
 and adds an import in index.js.

 Fixes https://github.com/hedgedoc/hedgedoc/issues/2248

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren
2022-04-08 12:13:37 +02:00
parent 61e092e8af
commit e0021036ae
4 changed files with 20 additions and 2 deletions

View File

@@ -20,7 +20,6 @@ module.exports = {
FilePicker: false,
ot: false,
MediaUploader: false,
hex2rgb: false,
num_loaded: false,
Visibility: false,
inlineAttachment: false