add host to remoteUpdate
diff --git a/scripts/assignments.js b/scripts/assignments.js
index 907167b..f995675 100644
--- a/scripts/assignments.js
+++ b/scripts/assignments.js
@@ -354,7 +354,7 @@
//Get updates HTML
var updatesHTML = "";
- if (dtps.remoteConfig.remoteUpdate.active) {
+ if (dtps.remoteConfig.remoteUpdate.active && (dtps.remoteConfig.host ? dtps.remoteConfig.host == window.location.host : true)) {
updatesHTML += /*html*/`
<div style="cursor: auto; padding: 20px; --classColor: var(--secText);" class="announcement card open">
<div class="className">
diff --git a/scripts/core.js b/scripts/core.js
index 92e1a59..f34c51c 100644
--- a/scripts/core.js
+++ b/scripts/core.js
@@ -1,7 +1,7 @@
/**
* @file DTPS Core functions and module loader
* @author jottocraft
- * @version v3.1.5
+ * @version v3.1.6
*
* @copyright Copyright (c) 2018-2021 jottocraft
* @license GPL-2.0-only
@@ -36,8 +36,8 @@
* @property {boolean} searchScrollListener True if the search scroll listener has been added
*/
var dtps = {
- ver: 315,
- readableVer: "v3.1.5",
+ ver: 316,
+ readableVer: "v3.1.6",
env: new URL(window.dtpsBaseURL || "https://powerplus.app").hostname == "localhost" ? "dev" : window.jottocraftSatEnv || "prod",
classes: [],
baseURL: window.dtpsBaseURL || "https://powerplus.app",
@@ -81,6 +81,7 @@
remoteUpdate: {
title: null,
html: null,
+ host: null,
active: false
},
showVideoMeetingButton: true,