Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Commit

Permalink
fixed app not working in ie11
Browse files Browse the repository at this point in the history
  • Loading branch information
burgha committed Sep 17, 2019
1 parent f586f18 commit 4897498
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<name>Upload Details</name>
<summary>Shows Upload Details (percent complete, current speed, ...) in Upload Progress Bar</summary>
<description><![CDATA[By default, the Nextcloud upload progress bar only shows an estimated time to completion. This App adds useful information like the current upload speed, completion in percent and uploaded/total file size.]]></description>
<version>0.1.1</version>
<version>0.1.2</version>
<licence>agpl</licence>
<author mail="hburger30@gmail.com">Hannes Burger</author>
<namespace>UploadDetails</namespace>
Expand Down
8 changes: 4 additions & 4 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
'use strict';

$(window).load(function() {
const targetNode = document.getElementById('uploadprogressbar');
const config = { attributes: true, childList: false, subtree: false };
const callback = function(mutationsList, observer) {
var targetNode = document.getElementById('uploadprogressbar');
var config = { attributes: true, childList: false, subtree: false };
var callback = function(mutationsList, observer) {
if (mutationsList[0].attributeName !== "original-title") {
return;
}
Expand All @@ -15,7 +15,7 @@
$("#uploadprogressbar .label").css("overflow", "visible");
};

const observer = new MutationObserver(callback);
var observer = new MutationObserver(callback);
observer.observe(targetNode, config);
});
})(window, jQuery);

0 comments on commit 4897498

Please sign in to comment.