mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-21 02:35:23 -04:00
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:
parent
61e092e8af
commit
e0021036ae
4 changed files with 20 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
/* eslint-env browser, jquery */
|
||||
/* eslint no-console: ["error", { allow: ["warn", "error", "debug"] }] */
|
||||
/* global Cookies, moment, serverurl,
|
||||
key, Dropbox, hex2rgb, Visibility */
|
||||
key, Dropbox, Visibility */
|
||||
|
||||
import TurndownService from 'turndown'
|
||||
import CodeMirror from 'codemirror/lib/codemirror.js'
|
||||
|
@ -14,6 +14,7 @@ import Idle from 'Idle.Js'
|
|||
import '../vendor/jquery-textcomplete/jquery.textcomplete'
|
||||
|
||||
import { ot } from '../vendor/ot/ot.min.js'
|
||||
import hex2rgb from '../vendor/ot/hex2rgb'
|
||||
|
||||
import { saveAs } from 'file-saver'
|
||||
import randomColor from 'randomcolor'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue