danoniplus 19.5.14 → 19.5.15

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 (2) hide show
  1. package/js/danoni_main.js +6 -6
  2. package/package.json +22 -22
package/js/danoni_main.js CHANGED
@@ -4,12 +4,12 @@
4
4
  *
5
5
  * Source by tickle
6
6
  * Created : 2018/10/08
7
- * Revised : 2022/02/16npm
7
+ * Revised : 2022/04/10
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 19.5.14`;
12
- const g_revisedDate = `2022/02/16`;
11
+ const g_version = `Ver 19.5.15`;
12
+ const g_revisedDate = `2022/04/10`;
13
13
  const g_alphaVersion = ``;
14
14
 
15
15
  // カスタム用バージョン (danoni_custom.js 等で指定可)
@@ -40,11 +40,11 @@ let g_localVersion2 = ``;
40
40
  */
41
41
  const current = _ => {
42
42
  if (document.currentScript) {
43
- return document.currentScript.src;
43
+ return encodeURI(document.currentScript.src);
44
44
  }
45
45
  const scripts = document.getElementsByTagName(`script`);
46
46
  const targetScript = scripts[scripts.length - 1];
47
- return targetScript.src;
47
+ return encodeURI(targetScript.src);
48
48
  };
49
49
  const g_rootPath = current().match(/(^.*\/)/)[0];
50
50
  const g_remoteFlg = g_rootPath.match(`^https://cwtickle.github.io/danoniplus/`) !== null;
@@ -1301,7 +1301,7 @@ function loadDos(_afterFunc, _scoreId = g_stateObj.scoreId, _cyclicFlg = false)
1301
1301
  const externalDosInput = document.querySelector(`#externalDos`);
1302
1302
  const divRoot = document.querySelector(`#divRoot`);
1303
1303
  const queryDos = getQueryParamVal(`dos`) !== null ? `dos/${getQueryParamVal('dos')}.txt` :
1304
- (externalDosInput !== null ? externalDosInput.value : ``);
1304
+ encodeURI(externalDosInput !== null ? externalDosInput.value : ``);
1305
1305
 
1306
1306
  if (dosInput === null && queryDos === ``) {
1307
1307
  makeWarningWindow(g_msgInfoObj.E_0023);
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
- {
2
- "name": "danoniplus",
3
- "version": "19.5.14",
4
- "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/cwtickle/danoniplus.git"
12
- },
13
- "keywords": [
14
- "rhythm-game",
15
- "dancing-onigiri"
16
- ],
17
- "author": "tickle <quc_tickle@cw7.sakura.ne.jp> (https://github.com/cwtickle/)",
18
- "license": "MIT",
19
- "bugs": {
20
- "url": "https://github.com/cwtickle/danoniplus/issues"
21
- },
22
- "homepage": "https://github.com/cwtickle/danoniplus#readme"
1
+ {
2
+ "name": "danoniplus",
3
+ "version": "19.5.15",
4
+ "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/cwtickle/danoniplus.git"
12
+ },
13
+ "keywords": [
14
+ "rhythm-game",
15
+ "dancing-onigiri"
16
+ ],
17
+ "author": "tickle <quc_tickle@cw7.sakura.ne.jp> (https://github.com/cwtickle/)",
18
+ "license": "MIT",
19
+ "bugs": {
20
+ "url": "https://github.com/cwtickle/danoniplus/issues"
21
+ },
22
+ "homepage": "https://github.com/cwtickle/danoniplus#readme"
23
23
  }