ericz 12 ani în urmă
părinte
comite
ad97f4a3a8
1 a modificat fișierele cu 17 adăugiri și 17 ștergeri
  1. 17 17
      README.md

+ 17 - 17
README.md

@@ -8,29 +8,29 @@ Each peer simply provides a identifier with which other peers using the same API
 
 **Include the library**
 
-     <script src="http://cdn.peerjs.com/0/peer.js"></script>
+    <script src="http://cdn.peerjs.com/0/peer.js"></script>
 
 **Peer**
 
-     <script>
-       var peer = new Peer('someid', {key: 'apikey'});
-       peer.on('connection', function(conn) {
-         conn.on('data', function(data){
-           // Will print 'hi!'
-           console.log(data);
-         });
-       });
-     </script>
+    <script>
+      var peer = new Peer('someid', {key: 'apikey'});
+      peer.on('connection', function(conn) {
+        conn.on('data', function(data){
+          // Will print 'hi!'
+          console.log(data);
+        });
+      });
+    </script>
 
 **Connecting peer**
 
-     <script>
-       var peer = new Peer('anotherid', {key: 'apikey'});
-       var conn = peer.connect('someid');
-       conn.on('open', function(){
-         conn.send('hi!');
-       }); 
-     </script>
+    <script>
+      var peer = new Peer('anotherid', {key: 'apikey'});
+      var conn = peer.connect('someid');
+      conn.on('open', function(){
+        conn.send('hi!');
+      }); 
+    </script>
 
 
 ### [Getting started](http://peerjs.com/start)