add assets

This commit is contained in:
2022-01-23 22:48:09 +00:00
parent 49810833ca
commit c6b191ce16
1000 changed files with 9828 additions and 7954 deletions

View File

@@ -14,10 +14,11 @@
ready(function() {
function handleClick(event) {
event.preventDefault();
if (window.location.search.indexOf('&_popup=1') === -1) {
window.history.back(); // Go back if not a popup.
const params = new URLSearchParams(window.location.search);
if (params.has('_popup')) {
window.close(); // Close the popup.
} else {
window.close(); // Otherwise, close the popup.
window.history.back(); // Otherwise, go back.
}
}