From c2696ec3971c6a3cc2ec9194f84d870818aea305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=86ndrew=20Rininsland?= Date: Sun, 24 May 2015 13:46:19 -0600 Subject: [PATCH] Trying another way to fix the btoa issue. --- github.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/github.js b/github.js index 191d2b71..99dc5861 100644 --- a/github.js +++ b/github.js @@ -21,7 +21,10 @@ if (typeof exports !== 'undefined') { XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest; _ = require('underscore'); - btoa = require('btoa'); //jshint ignore:line + if (typeof btoa === 'undefined') { + var btoa = require('btoa'); //jshint ignore:line + } + } else { _ = window._; }