'use strict';

var vue = require('vue');

function tryOnMounted(fn, sync = true) {
  if (vue.getCurrentInstance())
    vue.onMounted(fn);
  else if (sync)
    fn();
  else
    vue.nextTick(fn);
}

exports.tryOnMounted = tryOnMounted;
//# sourceMappingURL=index.cjs.map
