We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a341aa commit 5191041Copy full SHA for 5191041
src/pat/gallery/gallery.js
@@ -36,7 +36,10 @@ export default Base.extend({
36
this.options = parser.parse(this.el, this.options);
37
38
// Use default template, if no other template is defined.
39
- if (!document.getElementById("photoswipe-template")) {
+ this.template = document.querySelector(
40
+ ".pat-gallery__template-wrapper, #photoswipe-template"
41
+ );
42
+ if (!this.template) {
43
const raw_template = (await import("./template.html")).default;
44
this.template = document.createElement("div");
45
this.template.setAttribute("class", "pat-gallery__template-wrapper");
0 commit comments