@@ -491,7 +491,7 @@ function files(p5, fn){
491
491
* async function setup() {
492
492
* // Create a 200x200 canvas
493
493
* createCanvas(200, 200);
494
- *
494
+ *
495
495
* // Load the CSV file with a header row
496
496
* table = await loadTable('assets/mammals.csv', ',', 'header');
497
497
*
@@ -501,7 +501,7 @@ function files(p5, fn){
501
501
* // Set text properties
502
502
* fill(0); // Set text color to black
503
503
* textSize(16); // Adjust text size as needed
504
- *
504
+ *
505
505
* // Display each column value in the row on the canvas.
506
506
* // Using an offset for y-position so each value appears on a new line.
507
507
* for (let c = 0; c < table.getColumnCount(); c++) {
@@ -748,7 +748,7 @@ function files(p5, fn){
748
748
* @returns {Promise<Uint8Array> } a Uint8Array containing the loaded buffer
749
749
*
750
750
* @example
751
- *
751
+ *
752
752
* <div>
753
753
* <code>
754
754
* let data;
@@ -787,7 +787,7 @@ function files(p5, fn){
787
787
}
788
788
}
789
789
} ;
790
-
790
+
791
791
/**
792
792
* Loads a file at the given path as a Blob, then returns the resulting data or
793
793
* passes it to a success callback function, if provided. On load, this function
@@ -2187,7 +2187,8 @@ function files(p5, fn){
2187
2187
* @private
2188
2188
*/
2189
2189
fn . _isSafari = function ( ) {
2190
- return window . HTMLElement . toString ( ) . includes ( 'Constructor' ) ;
2190
+ // The following line is CC BY SA 3 by user Fregante https://stackoverflow.com/a/23522755
2191
+ return / ^ ( (? ! c h r o m e | a n d r o i d ) .) * s a f a r i / i. test ( navigator . userAgent ) ;
2191
2192
} ;
2192
2193
2193
2194
/**
0 commit comments