Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rfs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Cuppens <martijn.cuppens@gmail.com>2021-06-18 08:51:13 +0300
committerXhmikosR <xhmikosr@gmail.com>2021-06-22 08:48:30 +0300
commit9f53317acbc4c17671aa35b54719cafd5bfa04ac (patch)
tree27d736af66fe2e0eab3a0b27a3b0e31a0c1bca3b
parentda334d8a292c6b0154f588abed1f950c95a5ca55 (diff)
Multiplication fix (#371)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
-rw-r--r--lib/rfs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rfs.js b/lib/rfs.js
index 10bbb8a..73364a5 100644
--- a/lib/rfs.js
+++ b/lib/rfs.js
@@ -27,7 +27,7 @@ module.exports = class {
if (this.opts.baseValue.endsWith('px')) {
this.opts.baseValue = parseFloat(this.opts.baseValue);
} else if (this.opts.baseValue.endsWith('rem')) {
- this.opts.baseValue = parseFloat(this.opts.baseValue) / this.opts.remValue;
+ this.opts.baseValue = parseFloat(this.opts.baseValue) * this.opts.remValue;
} else {
console.error(BASE_RFS_ERROR);
}