Skip to content

Commit

Permalink
Update subnets.html
Browse files Browse the repository at this point in the history
Don't break old links, use comments only if provided.
  • Loading branch information
BlackthornYugen committed May 3, 2021
1 parent 8299a07 commit 3c3908d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions subnets.html
Original file line number Diff line number Diff line change
Expand Up @@ -437,10 +437,15 @@
{
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];
Expand Down

0 comments on commit 3c3908d

Please sign in to comment.