summaryrefslogtreecommitdiff
path: root/lib/Yaml.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Yaml.js')
-rw-r--r--lib/Yaml.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Yaml.js b/lib/Yaml.js
index bf96d59..135b5ad 100644
--- a/lib/Yaml.js
+++ b/lib/Yaml.js
@@ -97,4 +97,8 @@ if (typeof window !== "undefined" && window !== null) {
window.YAML = Yaml;
}
+if (typeof window === "undefined" || window === null) {
+ this.YAML = Yaml;
+}
+
module.exports = Yaml;