mirror of
https://github.com/szimek/sharedrop.git
synced 2026-06-13 21:03:07 +08:00
Fix strange error in production build
This commit is contained in:
parent
6b25919a91
commit
bb7f4f823d
@ -117,7 +117,7 @@ File.prototype.save = function () {
|
||||
a.addEventListener('click', function () {
|
||||
// Remove file entry from filesystem.
|
||||
setTimeout(function () {
|
||||
self.remove().then(self._reset);
|
||||
self.remove().then(self._reset.bind(self));
|
||||
}, 100); // Hack, but otherwise browser doesn't save the file at all.
|
||||
|
||||
a.parentNode.removeChild(a);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user