Paste Search Dynamic
Recent pastes
config.js
  1. define(function () {
  2.     // Supports dev.disqus.org:8000 and disqus.com paths
  3.     const disqusHost = /(^|\.)disqus\.com$/.test(window.location.host) ? 'disqus.com' : 'dev.disqus.org:8000';
  4.     const protocol = disqusHost === 'disqus.com' ? 'https://' : 'http://';
  5.     const disqusUrl = protocol + disqusHost;
  6.     const currentForum = window.location.host.split(disqusHost)[0].replace('.', '');
  7.  
  8.     return {
  9.         urls: {
  10.             api: `${protocol}${disqusHost}/api/3.0/`,
  11.             createSite: `${disqusUrl}/admin/create/`,
  12.             cdnCurrent: 'https://c.disquscdn.com/next/current/embed/',
  13.         },
  14.         disqusHost, // disqus.com or dev.disqus.org:8000
  15.         currentForum,
  16.         keys: {
  17.             api: 'Y1S1wGIzdc63qnZ5rhHfjqEABGA4ZTDncauWFFWWTUBqkmLjdxloTb7ilhGnZ7z1',
  18.         },
  19.         debug: IS_DEV,
  20.         disqusUrl,
  21.  
  22.         // IMPORTANT: must remain in sync with home/publisher-admin/embed's feedApiVersion
  23.         feedApiVersion: '12',
  24.     };
  25. });
  26.  
  27.  
  28.  
  29. // WEBPACK FOOTER //
  30. // ./src/js/core/config.js
Parsed in 0.006 seconds