[Glitch] Fix eslint error of import/no-extraneous-dependencies

Port 7bfef64877 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
lolsob-rspec
nzws✨ 2019-09-18 22:41:50 +09:00 committed by Thibaut Girka
parent bbb3e8fe9b
commit 44a47b5324
1 changed files with 2 additions and 2 deletions

View File

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