Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function install(Vue, options) {
configuration = new cloudinary.Configuration(options);
// if (cloudinary.CloudinaryJQuery && jQuery) {
// // cloudinary is attached to the global `jQuery` object
// jQuery.cloudinary.config(configuration.config());
// cloudinaryInstance = jQuery.cloudinary;
// } else {
cloudinaryInstance = new cloudinary.Cloudinary(configuration.config());
// }
cloudinary.Util.assign(cloudinaryInstance, cloudinary); // copy namespace to the service instance
Vue.directive('cl-image', clImage);
}
function install(Vue, options) {
configuration = new cloudinary.Configuration(options);
// if (cloudinary.CloudinaryJQuery && jQuery) {
// // cloudinary is attached to the global `jQuery` object
// jQuery.cloudinary.config(configuration.config());
// cloudinaryInstance = jQuery.cloudinary;
// } else {
cloudinaryInstance = new cloudinary.Cloudinary(configuration.config());
// }
cloudinary.Util.assign(cloudinaryInstance, cloudinary); // copy namespace to the service instance
Vue.directive('cl-image', clImage);
}