From 3c3908d9d12161d0c4e6fb6ecd0d49dc2c34b60c Mon Sep 17 00:00:00 2001 From: John Steel Date: Mon, 3 May 2021 12:00:43 -0400 Subject: [PATCH] Update subnets.html Don't break old links, use comments only if provided. --- subnets.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/subnets.html b/subnets.html index 13338b1..edcc444 100644 --- a/subnets.html +++ b/subnets.html @@ -437,10 +437,15 @@ function calcOnLoad() { preloadSubnetImages(); args = parseQueryString(); - if (args['network'] && args['mask'] && args['division'] && args['comments']) { + if (args['network'] && args['mask'] && args['division']) { document.forms['calc'].elements['network'].value = args['network']; document.forms['calc'].elements['netbits'].value = args['mask']; - curComments = JSON.parse(args['comments']); + + if (args['comments']) { + curComments = JSON.parse(args['comments']); + } else { + curComments = {}; + } updateNetwork(); var division = asciiToBin(args['division']); rootSubnet = [0, 0, null];