diff --git a/src/httpVueLoader.js b/src/httpVueLoader.js index 9bb2d9f..b9177e8 100644 --- a/src/httpVueLoader.js +++ b/src/httpVueLoader.js @@ -4,7 +4,7 @@ else if(typeof define==='function' && define.amd) define([],factory) else - root.httpVueLoader=factory() + (root = root || self, root.httpVueLoader=factory()) })(this,function factory() { 'use strict';