@foxford/sdk 6.0.0 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.cjs +1 -1
  2. package/index.js +1 -1
  3. package/package.json +2 -2
package/index.cjs CHANGED
@@ -98,7 +98,7 @@ if (window.antibotInitialized === void 0) window.antibotInitialized = false;
98
98
  var _FoxfordAntibot = class _FoxfordAntibot {
99
99
  constructor(config = _FoxfordAntibot.DEFAULT_CONFIG) {
100
100
  this.createAntibotFrame = (params) => {
101
- if (window.location.hostname.endsWith("foxford.ru") || window.location.hostname.endsWith("netology-group.services") || this.config.debug) {
101
+ if (window.location.hostname.endsWith("foxford.ru") || window.location.hostname.endsWith("netology-group.services") || window.location.hostname.endsWith("foxford-school.com") || window.location.hostname.endsWith("foxford-home-school.ru") || window.location.hostname.endsWith("smartlearning.ru") || this.config.debug) {
102
102
  const frame = _FoxfordAntibot.createFrame(params.src, params == null ? void 0 : params.onload, params == null ? void 0 : params.onerror);
103
103
  document.body.appendChild(frame);
104
104
  window.antibotInitialized = true;
package/index.js CHANGED
@@ -46,7 +46,7 @@ if (window.antibotInitialized === void 0) window.antibotInitialized = false;
46
46
  var _FoxfordAntibot = class _FoxfordAntibot {
47
47
  constructor(config = _FoxfordAntibot.DEFAULT_CONFIG) {
48
48
  this.createAntibotFrame = (params) => {
49
- if (window.location.hostname.endsWith("foxford.ru") || window.location.hostname.endsWith("netology-group.services") || this.config.debug) {
49
+ if (window.location.hostname.endsWith("foxford.ru") || window.location.hostname.endsWith("netology-group.services") || window.location.hostname.endsWith("foxford-school.com") || window.location.hostname.endsWith("foxford-home-school.ru") || window.location.hostname.endsWith("smartlearning.ru") || this.config.debug) {
50
50
  const frame = _FoxfordAntibot.createFrame(params.src, params == null ? void 0 : params.onload, params == null ? void 0 : params.onerror);
51
51
  document.body.appendChild(frame);
52
52
  window.antibotInitialized = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foxford/sdk",
3
- "version": "6.0.0",
3
+ "version": "6.1.0",
4
4
  "description": "Foxford sdk for external projects",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -60,6 +60,6 @@
60
60
  "package.json",
61
61
  "plugins"
62
62
  ],
63
- "sha": "43a4ae4",
63
+ "sha": "ad5d9c8",
64
64
  "scripts": {}
65
65
  }