Skip to content

Commit 152106f

Browse files
committed
[other] show how to use staging
1 parent e2b3837 commit 152106f

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ dist
3535
dev
3636
.nyc_output
3737
test-results.json
38+
.idea/

example.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ <h4>QR Code</h4>
8383
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
8484
<script type="text/javascript">
8585
(function(b,r,a,n,c,h,_,s,d,k){if(!b[n]||!b[n]._q){for(;s<_.length;)c(h,_[s++]);d=r.createElement(a);d.async=1;d.src="https://cdn.branch.io/branch-latest.min.js";k=r.getElementsByTagName(a)[0];k.parentNode.insertBefore(d,k);b[n]=h}})(window,document,"script","branch",function(b,r){b[r]=function(){b._q.push([r,arguments])}},{_q:[],_v:1},"addListener banner closeBanner closeJourney data deepview deepviewCta first init link logout removeListener setBranchViewData setIdentity track trackCommerceEvent logEvent disableTracking getBrowserFingerprintId crossPlatformIds lastAttributedTouchData setAPIResponseCallback qrCode setRequestMetaData setDMAParamsForEEA setAPIUrl getAPIUrl".split(" "), 0);
86+
branch.setAPIUrl("https://api.stage.branch.io");
8687

8788
branch.setAPIResponseCallback(function(url, method, requestBody, error, status, responseBody) {
8889
console.log('Request: ' + method + ' ' + url + ' body=' + JSON.stringify(requestBody));

src/6_branch.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,6 @@ Branch.prototype['qrCode'] = wrap(
13421342
utils.cleanLinkData(linkData),
13431343
function(error, rawBuffer) {
13441344
function QrCode() { }
1345-
13461345
if (!error) {
13471346
QrCode['rawBuffer'] = rawBuffer;
13481347
QrCode['base64'] = function() {

0 commit comments

Comments
 (0)