Update external-map.js
This commit is contained in:
committed by
Maximilian Krög
parent
8f24467ea4
commit
f4739df907
@@ -34,11 +34,13 @@ button.addEventListener('click', function () {
|
||||
mapWindow.addEventListener('load', function () {
|
||||
const extMapDiv = mapWindow.document.getElementById('map');
|
||||
map.setTarget(extMapDiv);
|
||||
extMapDiv.focus();
|
||||
|
||||
mapWindow.addEventListener('beforeunload', function () {
|
||||
localMapTarget.style.height = '';
|
||||
map.setTarget(localMapTarget);
|
||||
button.disabled = false;
|
||||
mapWindow.close();
|
||||
mapWindow = undefined;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user