Skip to content

Commit ebf96b7

Browse files
committed
chore: release 3.10.3
1 parent 45e30ae commit ebf96b7

9 files changed

+14
-18
lines changed

dist/photoviewer.common.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* / ____/ __ / /_/ / / / / /_/ /| |/ // // /___ | |/ |/ / /___/ _, _/
66
* /_/ /_/ /_/\____/ /_/ \____/ |___/___/_____/ |__/|__/_____/_/ |_|
77
*
8-
* photoviewer - v3.10.2
8+
* photoviewer - v3.10.3
99
* A JS plugin to view images just like in Windows.
1010
* https://nzbin.github.io/photoviewer/
1111
*
@@ -1426,7 +1426,6 @@ function debounce(fn, delay) {
14261426
*/
14271427
function preloadImage(src, success, error) {
14281428
var img = new Image();
1429-
img.crossOrigin = 'anonymous';
14301429
img.onload = function () {
14311430
success(img);
14321431
};
@@ -2064,7 +2063,7 @@ var PhotoViewer = /*#__PURE__*/function () {
20642063
}, {
20652064
key: "_createTemplate",
20662065
value: function _createTemplate() {
2067-
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>");
2066+
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>");
20682067
return photoviewerHTML.replace(/>\s+</g, '><');
20692068
}
20702069
}, {

dist/photoviewer.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/photoviewer.esm.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* / ____/ __ / /_/ / / / / /_/ /| |/ // // /___ | |/ |/ / /___/ _, _/
66
* /_/ /_/ /_/\____/ /_/ \____/ |___/___/_____/ |__/|__/_____/_/ |_|
77
*
8-
* photoviewer - v3.10.2
8+
* photoviewer - v3.10.3
99
* A JS plugin to view images just like in Windows.
1010
* https://nzbin.github.io/photoviewer/
1111
*
@@ -1424,7 +1424,6 @@ function debounce(fn, delay) {
14241424
*/
14251425
function preloadImage(src, success, error) {
14261426
var img = new Image();
1427-
img.crossOrigin = 'anonymous';
14281427
img.onload = function () {
14291428
success(img);
14301429
};
@@ -2062,7 +2061,7 @@ var PhotoViewer = /*#__PURE__*/function () {
20622061
}, {
20632062
key: "_createTemplate",
20642063
value: function _createTemplate() {
2065-
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>");
2064+
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>");
20662065
return photoviewerHTML.replace(/>\s+</g, '><');
20672066
}
20682067
}, {

dist/photoviewer.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* / ____/ __ / /_/ / / / / /_/ /| |/ // // /___ | |/ |/ / /___/ _, _/
66
* /_/ /_/ /_/\____/ /_/ \____/ |___/___/_____/ |__/|__/_____/_/ |_|
77
*
8-
* photoviewer - v3.10.2
8+
* photoviewer - v3.10.3
99
* A JS plugin to view images just like in Windows.
1010
* https://nzbin.github.io/photoviewer/
1111
*
@@ -1430,7 +1430,6 @@
14301430
*/
14311431
function preloadImage(src, success, error) {
14321432
var img = new Image();
1433-
img.crossOrigin = 'anonymous';
14341433
img.onload = function () {
14351434
success(img);
14361435
};
@@ -2068,7 +2067,7 @@
20682067
}, {
20692068
key: "_createTemplate",
20702069
value: function _createTemplate() {
2071-
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>");
2070+
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>");
20722071
return photoviewerHTML.replace(/>\s+</g, '><');
20732072
}
20742073
}, {

dist/photoviewer.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/photoviewer.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/css/photoviewer.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/js/photoviewer.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* / ____/ __ / /_/ / / / / /_/ /| |/ // // /___ | |/ |/ / /___/ _, _/
66
* /_/ /_/ /_/\____/ /_/ \____/ |___/___/_____/ |__/|__/_____/_/ |_|
77
*
8-
* photoviewer - v3.10.2
8+
* photoviewer - v3.10.3
99
* A JS plugin to view images just like in Windows.
1010
* https://nzbin.github.io/photoviewer/
1111
*
@@ -1430,7 +1430,6 @@
14301430
*/
14311431
function preloadImage(src, success, error) {
14321432
var img = new Image();
1433-
img.crossOrigin = 'anonymous';
14341433
img.onload = function () {
14351434
success(img);
14361435
};
@@ -2068,7 +2067,7 @@
20682067
}, {
20692068
key: "_createTemplate",
20702069
value: function _createTemplate() {
2071-
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>");
2070+
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>");
20722071
return photoviewerHTML.replace(/>\s+</g, '><');
20732072
}
20742073
}, {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "photoviewer",
3-
"version": "3.10.2",
3+
"version": "3.10.3",
44
"description": "A JS plugin to view images just like in Windows.",
55
"main": "src/js/photoviewer.js",
66
"types": "types/index.d.ts",

0 commit comments

Comments
 (0)