From 5d679173266654904e63722526f2e8f482b8fb39 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 557e62b65..53fa09d22 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);