We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d674bd3 commit 67a9522Copy full SHA for 67a9522
apps/textfacts/lib.js
@@ -3,7 +3,7 @@ exports.getCount = function() {
3
return 162;
4
};
5
exports.getText = function(n) {
6
- /*var s = require("Storage").read("textsource.txt");
+ var s = require("Storage").read("textsource.txt");
7
var idx = s.indexOf("\n");
8
var lengths = [idx];
9
while (idx>=0) {
@@ -26,4 +26,4 @@ exports.getText = function(n) {
26
exports.getRandomText = function() {
27
let n = Math.floor(Math.random()*exports.getCount());
28
return { idx : n, txt : exports.getText(n) };
29
-};
+};
0 commit comments