Skip to content
This repository was archived by the owner on Jan 25, 2024. It is now read-only.

Use 'self' if 'root' is undefined #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/httpVueLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down