danoniplus 24.6.5 → 24.6.6

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.
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/20
7
+ * Revised : 2022/04/10
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 24.6.5`;
12
- const g_revisedDate = `2022/02/20`;
11
+ const g_version = `Ver 24.6.6`;
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;
@@ -1336,7 +1336,7 @@ function loadDos(_afterFunc, _scoreId = g_stateObj.scoreId, _cyclicFlg = false)
1336
1336
  const externalDosInput = document.querySelector(`#externalDos`);
1337
1337
  const divRoot = document.querySelector(`#divRoot`);
1338
1338
  const queryDos = getQueryParamVal(`dos`) !== null ? `dos/${getQueryParamVal('dos')}.txt` :
1339
- (externalDosInput !== null ? externalDosInput.value : ``);
1339
+ encodeURI(externalDosInput !== null ? externalDosInput.value : ``);
1340
1340
 
1341
1341
  if (dosInput === null && queryDos === ``) {
1342
1342
  makeWarningWindow(g_msgInfoObj.E_0023);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "24.6.5",
3
+ "version": "24.6.6",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {