Upgrade to node 12

This commit is contained in:
Niklas Fondberg
2020-06-23 14:35:36 +02:00
committed by GitHub
parent 176d45b8db
commit f9fbc8d34f
9 changed files with 3174 additions and 1336 deletions
+4
View File
@@ -63,6 +63,10 @@ function ImageDataHandler(img) {
var frameHandler = img.canvas.getViewport().getFrameHandler();
returnValue.edge = frameHandler.getFrameType();
returnValue.framed = returnValue.edge !== 'none';
} else if (img.canvas.__type === 'wallpaper') {
// repeating wallpapers should not have any cropping
returnValue.x = 0;
returnValue.y = 0;
}
return returnValue;
-1
View File
@@ -1,5 +1,4 @@
'use strict';
/* globals window */
(function() {
+1 -1
View File
@@ -1,5 +1,5 @@
'use strict';
/* globals $, window */
/* globals $ */
function isMobile() {
return $(window).width() < 768;
+1 -1
View File
@@ -6,7 +6,7 @@
*/
function setProperties(obj, properties) {
for (var o in properties) {
if (properties.hasOwnProperty(o)) {
if (Object.prototype.hasOwnProperty.call(properties, o) ) {
Object.defineProperty(obj, o, properties[o]);
}
}