[Pkg-javascript-commits] [node-umd] 03/11: Handle web workers
Bastien Roucariès
rouca at moszumanska.debian.org
Mon Apr 17 07:38:06 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to annotated tag 1.3.0
in repository node-umd.
commit 4464d839b4a26c00457c910f824eec81c7346bf1
Author: Jazz <jazzzz at gmail.com>
Date: Fri Jul 5 15:05:01 2013 +0200
Handle web workers
---
template.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/template.js b/template.js
index adcd61b..d45f971 100644
--- a/template.js
+++ b/template.js
@@ -23,8 +23,10 @@
} else {
if (typeof window !== "undefined") {
window.{{camelcase}} = f();
- } else {
+ } else if (typeof global !== "undefined") {
global.{{camelcase}} = f();
+ } else if (typeof self !== "undefined") {
+ self.{{camelcase}} = f();
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-umd.git
More information about the Pkg-javascript-commits
mailing list