Skip to content

Commit

Permalink
chore: release 3.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbin committed Aug 16, 2024
1 parent 6c4cbe4 commit 5b7c501
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 26 deletions.
25 changes: 1 addition & 24 deletions css/photoviewer.css

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

5 changes: 3 additions & 2 deletions js/photoviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* / ____/ __ / /_/ / / / / /_/ /| |/ // // /___ | |/ |/ / /___/ _, _/
* /_/ /_/ /_/\____/ /_/ \____/ |___/___/_____/ |__/|__/_____/_/ |_|
*
* photoviewer - v3.10.1
* photoviewer - v3.10.2
* A JS plugin to view images just like in Windows.
* https://nzbin.github.io/photoviewer/
*
Expand Down Expand Up @@ -1430,6 +1430,7 @@
*/
function preloadImage(src, success, error) {
var img = new Image();
img.crossOrigin = 'anonymous';
img.onload = function () {
success(img);
};
Expand Down Expand Up @@ -2067,7 +2068,7 @@
}, {
key: "_createTemplate",
value: function _createTemplate() {
var photoviewerHTML = "<div class=\"".concat(NS, "-modal\" tabindex=\"0\" role=\"dialog\">\n <div class=\"").concat(NS, "-inner\">\n <div class=\"").concat(NS, "-header\">\n <div class=\"").concat(NS, "-toolbar ").concat(NS, "-toolbar-header\">\n ").concat(this._createBtns(this.options.headerToolbar), "\n </div>\n ").concat(this._createTitle(), "\n </div>\n <div class=\"").concat(NS, "-stage\">\n <img class=\"").concat(NS, "-image\" src=\"\" alt=\"\" />\n </div>\n <div class=\"").concat(NS, "-footer\">\n <div class=\"").concat(NS, "-toolbar ").concat(NS, "-toolbar-footer\">\n ").concat(this._createBtns(this.options.footerToolbar), "\n </div>\n </div>\n </div>\n </div>");
var photoviewerHTML = "<div class=\"".concat(NS, "-modal\" tabindex=\"0\" role=\"dialog\">\n <div class=\"").concat(NS, "-inner\">\n <div class=\"").concat(NS, "-header\">\n <div class=\"").concat(NS, "-toolbar ").concat(NS, "-toolbar-header\">\n ").concat(this._createBtns(this.options.headerToolbar), "\n </div>\n ").concat(this._createTitle(), "\n </div>\n <div class=\"").concat(NS, "-stage\">\n <img class=\"").concat(NS, "-image\" src=\"\" alt=\"\" crossorigin=\"anonymous\" />\n </div>\n <div class=\"").concat(NS, "-footer\">\n <div class=\"").concat(NS, "-toolbar ").concat(NS, "-toolbar-footer\">\n ").concat(this._createBtns(this.options.footerToolbar), "\n </div>\n </div>\n </div>\n </div>");
return photoviewerHTML.replace(/>\s+</g, '><');
}
}, {
Expand Down

0 comments on commit 5b7c501

Please sign in to comment.