diff --git a/package.json b/package.json index 5b31347c..69a1056c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ember-fetch", - "version": "3.3.1", + "version": "3.3.2", "description": "HTML5 Fetch polyfill (as an ember-addon)", "typings": "./index.d.ts", "keywords": [ diff --git a/public/fastboot-fetch.js b/public/fastboot-fetch.js index 87b1c16e..5940d79d 100644 --- a/public/fastboot-fetch.js +++ b/public/fastboot-fetch.js @@ -1,4 +1,8 @@ (function() { + if (typeof FastBoot === 'undefined' || typeof FastBoot.require === 'undefined') { + return + } + define('fetch', ['exports'], function(self) { var fetch = FastBoot.require('node-fetch'); self['default'] = fetch;