Merge branch 'master' into v9

This commit is contained in:
n1474335 2019-07-05 12:30:28 +01:00
commit e4e32a9c56
22 changed files with 384 additions and 264 deletions

View file

@ -26,11 +26,11 @@ self.handleMessage = function(e) {
*/
self.addEventListener("message", function(e) {
const r = e.data;
if (r.hasOwnProperty("file") && (r.hasOwnProperty("inputNum"))) {
if (Object.prototype.hasOwnProperty.call(r, "file") && Object.prototype.hasOwnProperty.call(r, "inputNum")) {
self.loadFile(r.file, r.inputNum);
} else if (r.hasOwnProperty("file")) {
} else if (Object.prototype.hasOwnProperty.call(r, "file")) {
self.loadFile(r.file, "");
} else if (r.hasOwnProperty("id")) {
} else if (Object.prototype.hasOwnProperty.call(r, "id")) {
self.id = r.id;
}
});