Rename start to extendOffer().

pull/25/head
Pontus Persson 2017-12-08 16:48:44 +01:00 committed by Pontus Alexander
parent e89393e6b0
commit 8a282c37c4
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ var dataChannel;
function pageReady() {
document.querySelector("button#start")
.addEventListener("click", start);
.addEventListener("click", extendOffer);
localVideo = document.getElementById('localVideo');
remoteVideo = document.getElementById('remoteVideo');
@ -71,7 +71,7 @@ function setup() {
});
}
function start() {
function extendOffer() {
peerConnection.createOffer().then(createdDescription).catch(errorHandler);
}