aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index 1f7fd37d..637bfda8 100644
--- a/src/library.js
+++ b/src/library.js
@@ -4784,7 +4784,7 @@ LibraryManager.library = {
return 0;
} else {
FS.forceLoadFile(target);
- var lib_data = intArrayToString(target.contents);
+ var lib_data = FS.readFile(filename, { encoding: 'utf8' });
}
try {