backtick strings conflict with python string templates
This commit is contained in:
parent
fd32dcc534
commit
874a88a7f1
@ -70,17 +70,17 @@
|
||||
document.getElementById('prev-btn').click();
|
||||
} else if (e.code === 'ArrowRight') {
|
||||
document.getElementById('next-btn').click();
|
||||
} else if (e.code === 'Equal') {
|
||||
} else if (e.code === 'Equal') {
|
||||
var params = getRefreshParams();
|
||||
if (params) window.location.href = `/${params.order}/${params.delay + 1}/${params.hash}`;
|
||||
if (params) window.location.href = params.order + '/' + (params.delay + 1) + '/' + params.hash;
|
||||
} else if (e.code === 'Minus') {
|
||||
var params = getRefreshParams();
|
||||
if (params && params.delay > 1) window.location.href = `/${params.order}/${params.delay - 1}/${params.hash}`;
|
||||
if (params && params.delay > 1) window.location.href = params.order + '/' + (params.delay - 1) + '/' + params.hash;
|
||||
} else if (e.key.toLowerCase() === 'o') {
|
||||
var params = getRefreshParams();
|
||||
if (params) {
|
||||
var newOrder = params.order === 'next' ? 'random' : 'next';
|
||||
window.location.href = `/${newOrder}/${params.delay}/${params.hash}`;
|
||||
window.location.href = '/' + newOrder + '/' + params.delay + '/' + params.hash;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user