From 4472077e088c7adf29f302174221d86a6e643539 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Thu, 19 Jul 2018 20:45:40 -0500 Subject: [PATCH] check for self --- lib/contracts/code_templates/main-context.js.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/contracts/code_templates/main-context.js.ejs b/lib/contracts/code_templates/main-context.js.ejs index 557e62b6..53fa09d2 100644 --- a/lib/contracts/code_templates/main-context.js.ejs +++ b/lib/contracts/code_templates/main-context.js.ejs @@ -1 +1 @@ -var __mainContext = __mainContext || this; +var __mainContext = __mainContext || (typeof self !== 'undefined' ? self : this);