Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit b051b8b

Browse files
author
Eduardo Fullea
committed
editorial fixes
1 parent 7556cda commit b051b8b

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

index.html

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ <h2>Introduction</h2>
7777
An example of use is provided below:
7878

7979
<pre class="example highlight">
80-
var req = navigator.messaging.sms.send (
81-
'+1234567890', 'How are you?');
82-
83-
req.onsuccess = function() {
84-
window.console.log('Message Sent!');
85-
}
86-
req.onerror = function(e) {
87-
window.console.error(e.target.error.name);
88-
}
80+
var req = navigator.messaging.sms.send (
81+
'+1234567890', 'How are you?');
82+
83+
req.onsuccess = function() {
84+
window.console.log('Message Sent!');
85+
}
86+
req.onerror = function(e) {
87+
window.console.error(e.target.error.name);
88+
}
8989
</pre>
9090
</section>
9191

@@ -1106,19 +1106,20 @@ <h3>Steps</h3>
11061106
An example of manual fetch of an MMS is provided below:
11071107

11081108
<pre class="example highlight">
1109-
var message = receivedMessageEvent.message
1110-
if (message.state == 'not-downloaded') {
1111-
var req = navigator.messaging.mms.fetch (message.id)
1112-
req.onprogress = function() {
1113-
window.console.log(e.loaded + ' bytes out of ' + e.total + '
1114-
downloaded ...');
1115-
}
1116-
req.onsuccess = function() {
1117-
window.console.log('Message Fetched!');
1118-
}
1119-
req.onerror = function(e) {
1120-
window.console.error(e.target.error.name);
1121-
}
1109+
var message = receivedMessageEvent.message
1110+
if (message.state == 'not-downloaded') {
1111+
var req = navigator.messaging.mms.fetch (message.id)
1112+
req.onprogress = function() {
1113+
window.console.log(e.loaded + ' bytes out of ' + e.total + '
1114+
downloaded ...');
1115+
}
1116+
req.onsuccess = function() {
1117+
window.console.log('Message Fetched!');
1118+
}
1119+
req.onerror = function(e) {
1120+
window.console.error(e.target.error.name);
1121+
}
1122+
}
11221123
</pre>
11231124

11241125

0 commit comments

Comments
 (0)