config.js

From disqus.com, 8 Months ago, written in JavaScript, viewed 3 times. This paste is a reply to postActions.js from disqus.com - view diff
URL https://pastebin.freepbx.org/view/963d33db Embed
Download Paste or View Raw
  1. define('core/config',[],function () {
  2.     'use strict';
  3.  
  4.     // These should be collected from the server
  5.     var origin = window.location.origin;
  6.  
  7.     // configure next-core
  8.     return {
  9.         urls: {
  10.             avatar: {
  11.                 generic: 'https://c.disquscdn.com/images/noavatar92.png',
  12.             },
  13.             api: origin + '/api/3.0/',
  14.             apiSettings: origin + '/users/self/',
  15.             login: origin + '/next/login/',
  16.             oauth: {
  17.                 twitter: origin + '/_ax/twitter/begin/',
  18.                 google: origin + '/_ax/google/begin/',
  19.                 facebook: origin + '/_ax/facebook/begin/',
  20.             },
  21.             oauthDestroy: function (service) {
  22.                 return origin + '/_ax/' + service + '/unmerge/';
  23.             },
  24.             oauthStatus: function (service) {
  25.                 return origin + '/_ax/' + service + '/merged/';
  26.             },
  27.             userDelete: origin + '/auth/json/user_delete/',
  28.             verifyEmail: origin + '/next/verify/',
  29.         },
  30.         keys: {
  31.             api: 'E8Uh5l5fHZ6gD8U3KycjAIAk46f68Zw7C6eW8WSjZvCLXebZ7p0r1yrYDrLilk2F',
  32.         },
  33.  
  34.         // IMPORTANT: If you change this, you must update the embed, marketing, and publisher-admin's config
  35.         // or else the counts will be out of sync.
  36.         feedApiVersion: '12',
  37.         debug: false,
  38.     };
  39. });
  40.  
  41. // https://c.disquscdn.com/next/82c6de3/home/js/core/config.js

Reply to "config.js"

Here you can reply to the paste above