This commit is contained in:
lubiana 2024-08-28 17:59:21 +02:00
parent f034f181b5
commit a77942768a
No known key found for this signature in database

View file

@ -175,12 +175,15 @@
}
}
debugger;
let hashParams = window.location.hash
let dataPart = hashParams.replace('#data=', '')
let decodedData = atob(dataPart)
let arr = JSON.parse(decodedData)
haram.harams = arr
if (decodedData.length > 0) {
let arr = JSON.parse(decodedData)
if (arr.length > 0) {
haram.harams = arr
}
}
haram.setUp()
document.getElementById('edit').addEventListener('click', () => {
if (haram.editMode === true) {