From e6750699d52e5ec2eb5abba89abdab0ca0a585ee Mon Sep 17 00:00:00 2001 From: 5kilian <5kilian@informatik.uni-hamburg.de> Date: Sun, 3 Mar 2019 21:06:14 +0100 Subject: [PATCH] Fix: root undefined --- css.escape.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/css.escape.js b/css.escape.js index 397cf88..aa68ee2 100644 --- a/css.escape.js +++ b/css.escape.js @@ -12,6 +12,9 @@ factory(root); } }(typeof global != 'undefined' ? global : this, function(root) { + if (!root) { + root = {}; + } if (root.CSS && root.CSS.escape) { return root.CSS.escape;