diff options
author | nzws✨ <git@nzws.me> | 2019-09-18 22:41:50 +0900 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2019-09-18 17:27:51 +0200 |
commit | 2ecc7106d7fc222ca84777fc279e9f46f80afd5a (patch) | |
tree | 1a99988dd7a46824527e59ee1861aa72ad7412ce /app/javascript | |
parent | b840de580f454c161df59d6b2d6562101b61fc85 (diff) |
[Glitch] Fix eslint error of import/no-extraneous-dependencies
Port d0c2c5278391b82ba7fa2f230bf237805ff61a0c to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/flavours/glitch/packs/public.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/flavours/glitch/packs/public.js b/app/javascript/flavours/glitch/packs/public.js index 72725d20b..019de2167 100644 --- a/app/javascript/flavours/glitch/packs/public.js +++ b/app/javascript/flavours/glitch/packs/public.js @@ -11,10 +11,10 @@ function main() { const React = require('react'); const ReactDOM = require('react-dom'); const Rellax = require('rellax'); - const createHistory = require('history').createBrowserHistory; + const { createBrowserHistory } = require('history'); const scrollToDetailedStatus = () => { - const history = createHistory(); + const history = createBrowserHistory(); const detailedStatuses = document.querySelectorAll('.public-layout .detailed-status'); const location = history.location; |