@everymatrix/casino-footer-v2 1.0.16 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-footer-v2",
3
- "version": "1.0.16",
3
+ "version": "1.1.0",
4
4
  "main": "dist/casino-footer-v2.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "526e9d4877d11a6372af0e39b2c9db7c8b640737"
39
+ "gitHead": "62036ada223f2b4f7b64d99a81ab2229ecba3cf1"
40
40
  }
@@ -250,29 +250,6 @@
250
250
  }
251
251
  }
252
252
 
253
- const setClientStyling = ():void => {
254
- let sheet = document.createElement('style');
255
- sheet.innerHTML = clientstyling;
256
- if (customStylingContainer) {
257
- customStylingContainer.appendChild(sheet);
258
- }
259
- }
260
-
261
- const setClientStylingURL = ():void => {
262
- let url:URL = new URL(clientstylingurl);
263
- let cssFile:HTMLElement = document.createElement('style');
264
-
265
- fetch(url.href)
266
- .then((res:any) => res.text())
267
- .then((data:any) => {
268
- cssFile.innerHTML = data
269
-
270
- if (customStylingContainer) {
271
- setTimeout(() => { customStylingContainer.appendChild(cssFile) }, 1);
272
- }
273
- });
274
- }
275
-
276
253
  const changeLanguage = ():void => {
277
254
  window.postMessage({type: 'LanguageChanged', selectedLanguage}, window.location.href);
278
255
  };
@@ -330,6 +307,25 @@
330
307
  languagesArray = languagesArray.map((language:string) => language.toUpperCase());
331
308
  }
332
309
 
310
+ const setClientStyling = ():void => {
311
+ let sheet = document.createElement('style');
312
+ sheet.innerHTML = clientstyling;
313
+ customStylingContainer.appendChild(sheet);
314
+ }
315
+
316
+ const setClientStylingURL = ():void => {
317
+ let url:URL = new URL(clientstylingurl);
318
+ let cssFile:HTMLElement = document.createElement('style');
319
+
320
+ fetch(url.href)
321
+ .then((res:any) => res.text())
322
+ .then((data:any) => {
323
+ cssFile.innerHTML = data
324
+
325
+ setTimeout(() => { customStylingContainer.appendChild(cssFile) }, 1);
326
+ });
327
+ }
328
+
333
329
  onMount(() => {
334
330
  return () => {
335
331
  clearInterval(clockInterval);