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
path: root/lib
diff options
context:
space:
mode:
authorMartijn Cuppens <martijn.cuppens@gmail.com>2021-06-18 08:51:13 +0300
committerGitHub <noreply@github.com>2021-06-18 08:51:13 +0300
commitbc1c03757219d4f6dc8ebe7d8eef656ecbae3337 (patch)
treecd8e63ae86da4fab777b123d8333eaae962f6514 /lib
parent2f0be6b888a8c2d53b70b7d31f6ab0b55d599d68 (diff)
Multiplication fix (#371)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/rfs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rfs.js b/lib/rfs.js
index f082e55..7ffb235 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 = Number.parseFloat(this.opts.baseValue);
} else if (this.opts.baseValue.endsWith('rem')) {
- this.opts.baseValue = Number.parseFloat(this.opts.baseValue) / this.opts.remValue;
+ this.opts.baseValue = Number.parseFloat(this.opts.baseValue) * this.opts.remValue;
} else {
console.error(BASE_RFS_ERROR);
}