Skip to content

Commit 9019c3a

Browse files
committed
update bitcore
1 parent 89d8aae commit 9019c3a

File tree

3 files changed

+279
-185
lines changed

3 files changed

+279
-185
lines changed

app.js

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ var express = require('express');
22
var http = require('http');
33
var app = express();
44

5+
// This is not really necesarry, just to simulate
6+
// Content Security Policy from Google Chrome Apps.
7+
//
8+
// app.use(function(req, res, next){
9+
// res.header("Content-Security-Policy", "script-src 'self';object-src 'none';media-src 'self';frame-src 'none';font-src 'self' data:");
10+
// next();
11+
// });
12+
513
app.use('/', express.static(__dirname + '/'));
614
app.get('*', function(req, res) {
715
return res.sendFile(__dirname + '/' + 'index.html');

js/controllers/send.js

+8
Original file line numberDiff line numberDiff line change
@@ -392,10 +392,18 @@ angular.module('copayApp.controllers').controller('SendController',
392392

393393

394394
$scope.setFromPayPro = function(uri) {
395+
396+
var isChromeApp = window.chrome && chrome.runtime && chrome.runtime.id;
397+
if (isChromeApp) {
398+
$scope.error = 'Payment Protocol not yet supported on ChromeApp';
399+
return;
400+
}
401+
395402
var w = $rootScope.wallet;
396403
$scope.fetchingURL = uri;
397404
$scope.loading = true;
398405

406+
399407
// Payment Protocol URI (BIP-72)
400408
w.fetchPaymentRequest({
401409
url: uri

0 commit comments

Comments
 (0)