subwayzurich 1.0.0 → 1.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.
File without changes
File without changes
File without changes
File without changes
File without changes
package/favicon.ico ADDED
Binary file
package/index.html CHANGED
File without changes
package/master-loader.js CHANGED
@@ -1,31 +1,31 @@
1
- "use strict";
2
- var scripts = document.getElementsByTagName("script"),
3
- scriptUrl = scripts[scripts.length - 1].src,
4
- root = scriptUrl.split("master-loader.js")[0],
5
- loaders = {
6
- unity: "unity.js"
7
- };
8
- if (0 <= window.location.href.indexOf("pokiForceLocalLoader")
9
- && (loaders.unity = "./unity.js",
10
-
11
- root = "/loaders"), !window.config) throw Error("window.config not found");
12
- var loader = loaders[window.config.loader];
13
- if (!loader) throw Error('Loader "' + window.config.loader + '" not found');
14
- if (!window.config.unityWebglLoaderUrl) {
15
- var versionSplit = window.config.unityVersion ? window.config.unityVersion.split(".") : [],
16
- year = versionSplit[0],
17
- minor = versionSplit[1];
18
- window.config.unityWebglLoaderUrl ="./UnityLoader.2019.2.js";
19
- // switch (year) {
20
- // case "2019":
21
- // window.config.unityWebglLoaderUrl = 1 === minor ? "./UnityLoader.2019.1.js" : "./UnityLoader.2019.2.js";
22
- // break;
23
- // default:
24
- // window.config.unityWebglLoaderUrl = "https://game-cdn.poki.com/loaders/v2/unity/static/UnityLoader.js"
25
- // }
26
- }
27
- var sdkScript = document.createElement("script");
28
- sdkScript.src = "./poki-sdk.js", sdkScript.onload = function() {
29
- var i = document.createElement("script");
30
- i.src = root + loader, document.body.appendChild(i)
1
+ "use strict";
2
+ var scripts = document.getElementsByTagName("script"),
3
+ scriptUrl = scripts[scripts.length - 1].src,
4
+ root = scriptUrl.split("master-loader.js")[0],
5
+ loaders = {
6
+ unity: "unity.js"
7
+ };
8
+ if (0 <= window.location.href.indexOf("pokiForceLocalLoader")
9
+ && (loaders.unity = "./unity.js",
10
+
11
+ root = "/loaders"), !window.config) throw Error("window.config not found");
12
+ var loader = loaders[window.config.loader];
13
+ if (!loader) throw Error('Loader "' + window.config.loader + '" not found');
14
+ if (!window.config.unityWebglLoaderUrl) {
15
+ var versionSplit = window.config.unityVersion ? window.config.unityVersion.split(".") : [],
16
+ year = versionSplit[0],
17
+ minor = versionSplit[1];
18
+ window.config.unityWebglLoaderUrl ="./UnityLoader.2019.2.js";
19
+ // switch (year) {
20
+ // case "2019":
21
+ // window.config.unityWebglLoaderUrl = 1 === minor ? "./UnityLoader.2019.1.js" : "./UnityLoader.2019.2.js";
22
+ // break;
23
+ // default:
24
+ // window.config.unityWebglLoaderUrl = "https://game-cdn.poki.com/loaders/v2/unity/static/UnityLoader.js"
25
+ // }
26
+ }
27
+ var sdkScript = document.createElement("script");
28
+ sdkScript.src = "./poki-sdk.js", sdkScript.onload = function() {
29
+ var i = document.createElement("script");
30
+ i.src = root + loader, document.body.appendChild(i)
31
31
  }, document.body.appendChild(sdkScript);
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "subwayzurich",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Subway Surfers Zurich unity",
5
5
  "main": "index.html",
6
6
  "unpkg": "index.html",
7
7
  "files": [
8
8
  "Build/",
9
+ "TemplateData/",
10
+ "screenshots/",
9
11
  "*.js",
10
12
  "index.html",
11
13
  "favicon.ico"
package/poki-sdk-core.js CHANGED
File without changes
package/poki-sdk.js CHANGED
File without changes
package/prebid4.12.0.js CHANGED
File without changes
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file