mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-29 19:13:00 -05:00
[Glitch] Fix eslint error of import/no-extraneous-dependencies
Port d0c2c5278391b82ba7fa2f230bf237805ff61a0c to glitch-soc Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
parent
b840de580f
commit
2ecc7106d7
@ -11,10 +11,10 @@ function main() {
|
|||||||
const React = require('react');
|
const React = require('react');
|
||||||
const ReactDOM = require('react-dom');
|
const ReactDOM = require('react-dom');
|
||||||
const Rellax = require('rellax');
|
const Rellax = require('rellax');
|
||||||
const createHistory = require('history').createBrowserHistory;
|
const { createBrowserHistory } = require('history');
|
||||||
|
|
||||||
const scrollToDetailedStatus = () => {
|
const scrollToDetailedStatus = () => {
|
||||||
const history = createHistory();
|
const history = createBrowserHistory();
|
||||||
const detailedStatuses = document.querySelectorAll('.public-layout .detailed-status');
|
const detailedStatuses = document.querySelectorAll('.public-layout .detailed-status');
|
||||||
const location = history.location;
|
const location = history.location;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user