diff options
author | emkael <emkael@tlen.pl> | 2019-11-12 01:07:35 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-11-12 01:07:35 +0100 |
commit | 1acda4a2b61c163e4a0795365751306e9c51044d (patch) | |
tree | 49c6b2148ab0e152b0274e0890c1757e3e45466c /playoff.js | |
parent | 9aea39ab89aab36cab9826b3298995209395a80c (diff) | |
parent | c86e17bd9464c53e1e09663443a5e1b228cf96ef (diff) |
Merge branch 'master' into gui
Diffstat (limited to 'playoff.js')
-rw-r--r-- | playoff.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -33,6 +33,9 @@ var playoff = { var attr = 'data-' + setting.replace(/_/g, '-'); var attr_value = canvas.getAttribute(attr); if (attr_value) { + if (attr.substr(attr.length-6) == 'offset') { + attr_value = parseInt(attr_value); + } defaults[setting] = attr_value; } } |