TrestleAdmin/trestle

View on GitHub
frontend/js/mixins/photoswipe.js

Summary

Maintainability
A
0 mins
Test Coverage
const usePhotoSwipe = (controller) => {
  Object.assign(controller, {
    loadPhotoSwipe () {
      return import(/* webpackChunkName: "photoswipe" */ 'photoswipe')
        .then(module => module.default)
    }
  })
}

export default usePhotoSwipe