|
@@ -78,7 +78,7 @@ async function handleDrop(e: DragEvent) {
|
|
|
for (const file of e.dataTransfer.files) {
|
|
|
const xmlString = await file.text();
|
|
|
assert(store.addressSpace!=null);
|
|
|
- store.addNodeset(await UANodeSet.parse(xmlString, file.name, store.addressSpace));
|
|
|
+ store.addNodeset(UANodeSet.parse(xmlString, file.name, store.addressSpace));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -89,7 +89,7 @@ async function loadZip(file: File){
|
|
|
|
|
|
const as=new AddressSpace([]);
|
|
|
for(const fileName of config.configData.nodesets||[]) {
|
|
|
- as.addNodeset(await UANodeSet.parse(await zip.files[fileName].async("string"), fileName, as));
|
|
|
+ as.addNodeset(UANodeSet.parse(await zip.files[fileName].async("string"), fileName, as));
|
|
|
}
|
|
|
const mlist=YAML.parse(await zip.files['mapping.yaml'].async("string")) as IMappingValue[];
|
|
|
const mapping=new Map<string, IMappingValue>();
|