You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix cross-origin iframe detection. The minifier logic changed and replaced self.top.location + '' to just top, causing the exception to no longer throw.
When the File System Access API is supported, the directoryOpen() function now returns the directory handle in the results array in case the directory is empty. Before, the function would return an empty array. This is a breaking change.
Warning
Breaking change:
// If the directory is empty, rather than `[]`,// this function now returns `[directoryHandle]`// when the File System Access API is supported.constfiles=awaitdirectoryOpen();// Check if there are files in the directory.if(files.length&&!(files[0]instanceofFile)){// The directory is empty and the returned item// is a `FileSystemDirectoryHandle`.constdirectoryHandle=files[0];returndirectoryHandle;}// There are files in the directory.for(fileoffiles){// Iterate over the files.}