Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup #35

Merged
merged 4 commits into from Dec 8, 2020
Merged

Cleanup #35

Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Prev

avoid innerHTML

  • Loading branch information
chrmod committed Dec 8, 2020
commit 10e74e6026135d34f898ba8cf889d97d7c799304
@@ -4,7 +4,9 @@

function cleanup() {
const $searchEngines = document.querySelector('.search-engines');
$searchEngines.innerHTML = '';
while ($searchEngines.firstChild) {
$searchEngines.removeChild(searchEngines.firstChild);
}
}

async function addSearchEngines() {
@@ -4,7 +4,9 @@

function cleanup() {
const $topsites = document.querySelector('.top-sites');
$topsites.innerHTML = '';
while ($topsites.firstChild) {
$topsites.removeChild(topsites.firstChild);
}
}

async function loadTopSites() {
ProTip! Use n and p to navigate between commits in a pull request.