Permalink
Browse files

fix(progress): ensure $loading is valid

  • Loading branch information...
pi0 committed Jan 28, 2018
1 parent 157c3a2 commit cbdc586c0c08def04032deb0c8e696c3c140fca8
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/plugin.template.js
@@ -100,7 +100,7 @@ const setupProgress = (axios, ctx) => {
set: () => { }
}

const $loading = () => window.$nuxt ? window.$nuxt.$loading : noopLoading
const $loading = () => (window.$nuxt && window.$nuxt.$loading && window.$nuxt.$loading.set) ? window.$nuxt.$loading : noopLoading

let currentRequests = 0

0 comments on commit cbdc586

Please sign in to comment.