fix: read unit on refresh

This commit is contained in:
King Kévin 2015-08-30 10:31:37 +02:00
parent 50535b62a8
commit 5a63225586
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,9 @@
var size = pad_thickness+pad_size+pad_chip_spacing*2+pad_spacing*5+pad_chip_spacing*2+pad_size+pad_thickness
logo.width = size
logo.height = size
var select = document.getElementById("unit")
var unit = select.options[select.selectedIndex].value
logo.unit = unit
// clear elements
logo.elements = []