1
0
Fork 0
mirror of https://github.com/Alamantus/Lexiconga.git synced 2025-06-06 01:06:36 +02:00

Fix console error when uploading whole dictionary

This commit is contained in:
Robbie Antenesse 2019-07-10 11:56:06 -06:00
parent d64619c8c1
commit 3997293689

View file

@ -80,7 +80,9 @@ export function uploadWholeDictionary(asNew = false) {
dictionary, dictionary,
}, remoteId => { }, remoteId => {
window.currentDictionary.externalID = remoteId; window.currentDictionary.externalID = remoteId;
document.getElementById('publicLink').value = document.domain + window.location.pathname + remoteId.toString(); if (document.getElementById('publicLink')) {
document.getElementById('publicLink').value = getPublicLink();
}
saveDictionary(false); saveDictionary(false);
addMessage('Dictionary Uploaded Successfully'); addMessage('Dictionary Uploaded Successfully');
renderChangeDictionaryOptions(); renderChangeDictionaryOptions();