make selector customisable

This commit is contained in:
Rich Harris
2017-12-12 06:19:53 -05:00
parent fa70024a92
commit 58768ae27d
3 changed files with 14 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ window.addEventListener('popstate', event => {
navigate(window.location);
});
const target = document.querySelector('main');
const target = document.querySelector('__selector__');
let component;
function navigate(url) {