From 397b045e8b0ed23d12a35340f7b1dae2df167377 Mon Sep 17 00:00:00 2001 From: faveoled <85760289+faveoled@users.noreply.github.com> Date: Mon, 6 Mar 2023 12:31:31 +0300 Subject: [PATCH 1/2] Blob#slice doc fix --- dom/src/main/scala/org/scalajs/dom/Blob.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/src/main/scala/org/scalajs/dom/Blob.scala b/dom/src/main/scala/org/scalajs/dom/Blob.scala index cd2156692..b2d1ae3e8 100644 --- a/dom/src/main/scala/org/scalajs/dom/Blob.scala +++ b/dom/src/main/scala/org/scalajs/dom/Blob.scala @@ -35,7 +35,7 @@ class Blob(blobParts: js.Iterable[BlobPart], options: BlobPropertyBag = js.nativ */ def `type`: String = js.native - /** A string indicating the MIME type of the data contained in the Blob. If the type is unknown, this string is empty. + /** Creates and returns a new Blob object which contains data from a subset of the blob on which it's called. */ def slice(start: Double = js.native, end: Double = js.native, contentType: String = js.native): Blob = js.native From 99c65c3d8a8adf4a0f1a1e153dcfea41e178357a Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Mon, 6 Mar 2023 17:23:13 +0000 Subject: [PATCH 2/2] Formatting --- dom/src/main/scala/org/scalajs/dom/Blob.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dom/src/main/scala/org/scalajs/dom/Blob.scala b/dom/src/main/scala/org/scalajs/dom/Blob.scala index b2d1ae3e8..8ace5bb0f 100644 --- a/dom/src/main/scala/org/scalajs/dom/Blob.scala +++ b/dom/src/main/scala/org/scalajs/dom/Blob.scala @@ -35,8 +35,7 @@ class Blob(blobParts: js.Iterable[BlobPart], options: BlobPropertyBag = js.nativ */ def `type`: String = js.native - /** Creates and returns a new Blob object which contains data from a subset of the blob on which it's called. - */ + /** Creates and returns a new Blob object which contains data from a subset of the blob on which it's called. */ def slice(start: Double = js.native, end: Double = js.native, contentType: String = js.native): Blob = js.native /** Returns a ReadableStream that can be used to read the contents of the blob. */