(function () {
    if (!window.Vue) return;                 // must run after Vue is loaded

    var boot = (window.bootstrap && typeof window.bootstrap === 'object')
        ? window.bootstrap
        : {};

    // make it available on every Vue instance (all roots)
    Vue.prototype.$bootstrap = boot;
    Vue.prototype.$bootstrapAttributes = boot.attributes || null;
})();
