Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var _browserUpdate2 = _interopRequireDefault(_browserUpdate);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function addLoadEvent(func) {
var ondOnLoad = window.onload;
var oldOnLoad = window.onload;
if (typeof window.onload !== 'function') {
window.onload = func;
} else {
Expand Down Expand Up @@ -75,4 +75,4 @@ VueBrowserUpdate.install = function (Vue, opts) {
};
};

exports.default = VueBrowserUpdate;
exports.default = VueBrowserUpdate;
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import browserUpdate from 'browser-update';

function addLoadEvent(func) {
const ondOnLoad = window.onload;
const oldOnLoad = window.onload;
if (typeof window.onload !== 'function') {
window.onload = func;
} else {
Expand Down