blob: badd7296e82116d58b0aee2a6f1d6b852de0eb0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import QtQuick 1.0
QtObject {
property bool test: false
Component.onCompleted: {
var x = new XMLHttpRequest;
try {
x.send();
} catch (e) {
if (e.code == DOMException.INVALID_STATE_ERR)
test = true;
}
}
}
|