~jpgleeson/caint

743c1af846df345f40265fd11b4d2ddb6de66381 — jpgleeson 1 year, 5 months ago c0919f8
Change tenantName.

Tenant name should be set by the site admin to a certain name. This is an easier way of allowing all subdomains etc to a site to either use the same comment system, or for them to be separate.
2 files changed, 2 insertions(+), 2 deletions(-)

M wwwroot/js/caint-admin.js
M wwwroot/js/caint.js
M wwwroot/js/caint-admin.js => wwwroot/js/caint-admin.js +1 -1
@@ 1,7 1,7 @@
const uri = 'api/Comments';
const threadUri = 'api/Threads';

const threadHost = document.location.hostname;
const threadHost = "TENANTNAMEHERE";
const threadPath = document.location.pathname;

getItems();

M wwwroot/js/caint.js => wwwroot/js/caint.js +1 -1
@@ 1,7 1,7 @@
const uri = 'api/Comments';
const threadUri = 'api/Threads';

const threadHost = document.location.hostname;
const threadHost = "TENANTNAMEHERE";
const threadPath = document.location.pathname;

const thisThread = getThreadId();