mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 06:16:32 +00:00
feaa91d062
fixes #5074
20 lines
560 B
QML
20 lines
560 B
QML
import QtQuick 2.13
|
|
|
|
ListModel {
|
|
Component.onCompleted: {
|
|
var xhr = new XMLHttpRequest();
|
|
xhr.open("GET", "english.txt");
|
|
xhr.onreadystatechange = function () {
|
|
if (xhr.readyState === XMLHttpRequest.DONE) {
|
|
var words = xhr.responseText.split('\n');
|
|
for (var i = 0; i < words.length; i++) {
|
|
if (words[i] !== "") {
|
|
insert(count, {"seedWord": words[i]});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
xhr.send();
|
|
}
|
|
}
|