Skip to content

Commit

Permalink
Merge pull request #144 from VGirol/vite-vue3-patch
Browse files Browse the repository at this point in the history
blueimp instance is globally declared
  • Loading branch information
RobinCK authored May 6, 2023
2 parents 7a8de43 + 0c0a936 commit aec9b19
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/js/vue-gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
var _this = this;

var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
var instance = typeof blueimp.Gallery !== 'undefined' ? blueimp.Gallery : blueimp;
var instance = typeof window.blueimp.Gallery !== 'undefined' ? window.blueimp.Gallery : blueimp;
var options = Object.assign({
toggleControlsOnReturn: false,
toggleControlsOnSlideClick: false,
Expand Down Expand Up @@ -278,7 +278,7 @@
/* style */
const __vue_inject_styles__ = function (inject) {
if (!inject) return
inject("data-v-709dace2_0", { source: ".blueimp-gallery>.description{position:absolute;top:30px;left:15px;color:#fff;display:none}.blueimp-gallery-controls>.description{display:block}", map: undefined, media: undefined });
inject("data-v-d0922312_0", { source: ".blueimp-gallery>.description{position:absolute;top:30px;left:15px;color:#fff;display:none}.blueimp-gallery-controls>.description{display:block}", map: undefined, media: undefined });

};
/* scoped */
Expand Down
2 changes: 1 addition & 1 deletion dist/js/vue-gallery.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/component/gallery.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
methods: {
open(index = 0) {
const instance = typeof blueimp.Gallery !== 'undefined' ? blueimp.Gallery : blueimp;
const instance = typeof window.blueimp.Gallery !== 'undefined' ? window.blueimp.Gallery : blueimp;
const options = Object.assign({
toggleControlsOnReturn: false,
Expand Down

0 comments on commit aec9b19

Please sign in to comment.