Fixed error on no meteor.settings file, updated meteor

This commit is contained in:
Stefan Zermatten
2019-05-03 13:41:49 +02:00
parent 5ce1b6aff8
commit d4864dda5f
4 changed files with 17 additions and 14 deletions

View File

@@ -25,13 +25,13 @@ chuangbo:marked
reywood:iron-router-ga
meteor-base@1.4.0
mobile-experience@1.0.5
mongo@1.6.0
mongo@1.6.2
blaze-html-templates
session@1.2.0
jquery@1.11.10
tracker@1.2.0
logging@1.1.20
reload@1.2.0
reload@1.3.0
ejson@1.1.0
spacebars
check@1.3.1
@@ -43,11 +43,11 @@ templates:array
ecmascript@0.12.4
es5-shim@4.8.0
differential:vulcanize
reactive-dict@1.2.1
reactive-dict@1.3.0
ongoworks:speakingurl
service-configuration@1.0.11
google-config-ui@1.0.1
dynamic-import@0.5.0
dynamic-import@0.5.1
ddp-rate-limiter@1.0.7
rate-limit@1.0.9
iron:router

View File

@@ -1 +1 @@
METEOR@1.8.0.2
METEOR@1.8.1

View File

@@ -1,4 +1,4 @@
accounts-base@1.4.3
accounts-base@1.4.4
accounts-google@1.3.2
accounts-oauth@1.1.16
accounts-password@1.5.1
@@ -10,8 +10,8 @@ aldeed:schema-deny@1.1.0
aldeed:schema-index@1.1.1
aldeed:simple-schema@1.5.4
allow-deny@1.1.0
autoupdate@1.5.1
babel-compiler@7.2.4
autoupdate@1.6.0
babel-compiler@7.3.4
babel-runtime@1.3.0
base64@1.0.11
binary-heap@1.0.11
@@ -31,12 +31,12 @@ ddp@1.4.0
ddp-client@2.3.3
ddp-common@1.4.0
ddp-rate-limiter@1.0.7
ddp-server@2.2.0
ddp-server@2.3.0
deps@1.0.12
diff-sequence@1.1.1
differential:vulcanize@3.0.0
dynamic-import@0.5.1
ecmascript@0.12.6
ecmascript@0.12.7
ecmascript-runtime@0.7.0
ecmascript-runtime-client@0.8.0
ecmascript-runtime-server@0.7.1
@@ -103,9 +103,9 @@ promise@0.11.2
raix:eventemitter@0.1.3
random@1.1.0
rate-limit@1.0.9
reactive-dict@1.2.1
reactive-dict@1.3.0
reactive-var@1.0.11
reload@1.2.0
reload@1.3.0
retry@1.1.0
reywood:iron-router-ga@0.7.1
routepolicy@1.1.0
@@ -133,7 +133,7 @@ url@1.2.0
useraccounts:core@1.14.2
useraccounts:iron-routing@1.14.2
useraccounts:polymer@1.14.2
webapp@1.7.3
webapp@1.7.4
webapp-hashing@1.0.9
zimme:collection-behaviours@1.1.3
zimme:collection-softremovable@1.0.5

View File

@@ -1,6 +1,8 @@
import { format as formatUrl } from 'url';
const CLIENT_ID = Meteor.settings.public.patreon.clientId;
const CLIENT_ID = Meteor.settings &&
Meteor.settings.public.patreon &&
Meteor.settings.public.patreon.clientId;
Template.profile.onCreated(function(){
this.showApiKey = new ReactiveVar(false);
@@ -18,6 +20,7 @@ Template.profile.helpers({
return Template.instance().showApiKey.get();
},
patreonLoginUrl: function(){
if (!CLIENT_ID) return;
return formatUrl({
protocol: 'https',
host: 'patreon.com',