Revision control

<html>
<head>
<script src="../../src/qwebchannel.js"></script>
<script>
window.onload = function() {
var textArea = document.querySelector("textarea");
- function debug(x) {
+ function output(x) {
textArea.value = textArea.value + x + "\n";
}
navigator.webChannel.subscribe(
"incoming-call",
function(message) {
- debug(message);
+ output(message);
}
);
navigator.webChannel.execute(
{a:"This is a request from HTML"},
function(response) {
- debug(response.b);
+ output(response.b);
}
);
};
</script>
</head>
<body>
<textarea style="width: 100%; height: 100%"></textarea>
</body>
</html>