diff --git a/src/display.js b/src/display.js index c204d81..5ea43c6 100644 --- a/src/display.js +++ b/src/display.js @@ -9,8 +9,7 @@ export const modal = content => { } export class Display { - constructor(baseUrl, dispatch, target) { - this.baseUrl = baseUrl + constructor(dispatch, target) { this.target = target const findA = target => { while (target.nodeName !== 'A') { diff --git a/src/index.js b/src/index.js index fc00b71..ef6aa1b 100644 --- a/src/index.js +++ b/src/index.js @@ -50,7 +50,7 @@ window.onpopstate = e => { dispatch(document.location.search) } const target = document.createElement('div') -display = new Display('', dispatch, target) +display = new Display(dispatch, target) if (document.location.search) dispatch(document.location.search) else display.renderIntro(intro)