Remove unused baseUrl parameter
This commit is contained in:
parent
f5d0077521
commit
4255b002b9
2 changed files with 2 additions and 3 deletions
|
|
@ -9,8 +9,7 @@ export const modal = content => {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Display {
|
export class Display {
|
||||||
constructor(baseUrl, dispatch, target) {
|
constructor(dispatch, target) {
|
||||||
this.baseUrl = baseUrl
|
|
||||||
this.target = target
|
this.target = target
|
||||||
const findA = target => {
|
const findA = target => {
|
||||||
while (target.nodeName !== 'A') {
|
while (target.nodeName !== 'A') {
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ window.onpopstate = e => {
|
||||||
dispatch(document.location.search)
|
dispatch(document.location.search)
|
||||||
}
|
}
|
||||||
const target = document.createElement('div')
|
const target = document.createElement('div')
|
||||||
display = new Display('', dispatch, target)
|
display = new Display(dispatch, target)
|
||||||
|
|
||||||
if (document.location.search) dispatch(document.location.search)
|
if (document.location.search) dispatch(document.location.search)
|
||||||
else display.renderIntro(intro)
|
else display.renderIntro(intro)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue