diff --git a/index.html b/index.html
index fa4141c..3a43380 100644
--- a/index.html
+++ b/index.html
@@ -898,7 +898,7 @@ function Library (client) {
}
this.export = (name = 'ronin', type = 'image/png', quality = 1.0) => { // Exports a graphic file with format.
const ext = type === 'image/png' ? name + '.png' : name + '.jpg'
- client.source.write(name, ext, client.surface.el.toDataURL(type, 1.0), type)
+ client.source.write(name, ext, client.surface.el.toDataURL(type, quality), type)
}
this.pos = (x = 0, y = 0) => { // Returns a position shape.
return { x, y }
@@ -1203,7 +1203,7 @@ function Library (client) {
this.each = (arr, fn) => { // Run a function for each element in a list.
for (let i = 0; i < arr.length; i++) {
const arg = arr[i]
- fn(arg,i)
+ fn(arg, i)
}
}
this.map = (arr, fn) => { // Run a function on each element in a list.