Remove instant updates from the url.hash

This wasn't fully working and would create a complex code (at least now)
pull/1/head
Alex Beregszaszi 8 years ago
parent 661d17fc09
commit f96c0d254b
  1. 12
      src/app.js

@ -53,15 +53,6 @@ var run = function () {
loadFiles(filesToLoad);
}
// ------------------ query params (hash) ----------------
function syncQueryParams () {
$('#optimize').attr('checked', (queryParams.get().optimize === 'true'));
}
window.onhashchange = syncQueryParams;
syncQueryParams();
// -------- check file upload capabilities -------
if (!(window.File || window.FileReader || window.FileList || window.Blob)) {
@ -531,6 +522,9 @@ var run = function () {
}
}
// set default
$('#optimize').attr('checked', (queryParams.get().optimize === 'true'));
document.querySelector('#optimize').addEventListener('change', function () {
queryParams.update({ optimize: document.querySelector('#optimize').checked });
compiler.compile();

Loading…
Cancel
Save