diff --git a/dist/js/main.js b/dist/js/main.js index 4e9f179..35c5a8a 100644 --- a/dist/js/main.js +++ b/dist/js/main.js @@ -447,9 +447,6 @@ function processConfigUrl() { renameKey(urlConfig, 'v', 'config_version') renameKey(urlConfig, 's', 'subnets') expandKeys(urlConfig['subnets']) - let subnet_split = Object.keys(urlConfig['subnets'])[0].split('/') - $('#network').val(subnet_split[0]) - $('#netsize').val(subnet_split[1]) importConfig(urlConfig) return true } @@ -506,6 +503,9 @@ function renameKey(obj, oldKey, newKey) { function importConfig(text) { // TODO: Probably need error checking here if (text['config_version'] === '1') { + let subnet_split = Object.keys(text['subnets'])[0].split('/') + $('#network').val(subnet_split[0]) + $('#netsize').val(subnet_split[1]) subnetMap = text['subnets']; renderTable() }