Skip to content

Commit

Permalink
Fix Window
Browse files Browse the repository at this point in the history
  • Loading branch information
doberkofler committed Nov 7, 2024
1 parent 01111a8 commit c1f6b19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dropzone.js
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ export default class Dropzone extends Emitter {
addFile(file) {
file.upload = {
// note: this only works if window.isSecureContext is true, which includes localhost in http
uuid: Window.isSecureContext ? self.crypto.randomUUID() : Dropzone.uuidv4(),
uuid: window.isSecureContext ? self.crypto.randomUUID() : Dropzone.uuidv4(),
progress: 0,
// Setting the total upload size to file.size for the beginning
// It's actual different than the size to be transmitted.
Expand Down

0 comments on commit c1f6b19

Please sign in to comment.