Fixed issue with Link Generation to connect patreon account
This commit is contained in:
@@ -1,9 +1,14 @@
|
|||||||
|
import { format as formatUrl } from 'url';
|
||||||
|
|
||||||
const CLIENT_ID = Meteor.settings &&
|
const CLIENT_ID = Meteor.settings &&
|
||||||
Meteor.settings.public.patreon &&
|
Meteor.settings.public.patreon &&
|
||||||
Meteor.settings.public.patreon.clientId;
|
Meteor.settings.public.patreon.clientId;
|
||||||
|
|
||||||
Template.registerHelper("patreonLoginUrl", function() {
|
Template.registerHelper("patreonLoginUrl", function() {
|
||||||
if (!CLIENT_ID) return;
|
if (!CLIENT_ID) {
|
||||||
|
console.warn('Could not find Meteor.settings.public.patreon.clientId to make patreon link')
|
||||||
|
return;
|
||||||
|
}
|
||||||
return formatUrl({
|
return formatUrl({
|
||||||
protocol: 'https',
|
protocol: 'https',
|
||||||
host: 'patreon.com',
|
host: 'patreon.com',
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
import { format as formatUrl } from 'url';
|
|
||||||
|
|
||||||
Template.profile.onCreated(function(){
|
Template.profile.onCreated(function(){
|
||||||
this.showApiKey = new ReactiveVar(false);
|
this.showApiKey = new ReactiveVar(false);
|
||||||
this.loadingPatreon = new ReactiveVar(false);
|
this.loadingPatreon = new ReactiveVar(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user