Skip to content

Commit

Permalink
[FIX] Alert display for init session
Browse files Browse the repository at this point in the history
  • Loading branch information
renesansz committed Feb 1, 2016
1 parent 182a7fc commit f6fe4c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion testbed/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<button onclick="GenerateShortUrl()">Generate URL</button>
</div>
<div>
<input type="text" class="padding-vertical" id="generated-url" placeholder="Generated URL Goes here" onclick="OpenLink()" readonly>
<input type="text" class="padding-vertical" id="generated-url" placeholder="Generated URL Goes here" readonly>
</div>
</fieldset>
</div>
Expand Down
8 changes: 1 addition & 7 deletions testbed/www/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function InitSession()

Branch.initSession().then(function (res) {
console.log(res);
alert('Initialize: ' + res);
alert('Initialize: ' + JSON.stringify(res));
}, function (err) {
console.error(err);
alert(err);
Expand Down Expand Up @@ -166,12 +166,6 @@ function CreateBranchUniversalObject()

}

function OpenLink()
{
var url = document.getElementById('generated-url').value;
window.open(url);
}

function RegisterView()
{
console.log('Trigger RegisterView()');
Expand Down

0 comments on commit f6fe4c5

Please sign in to comment.