Commit 62545859 authored by Xiaowu Zhang's avatar Xiaowu Zhang

fix type check when localmode

parent 9b3610f4
...@@ -9633,7 +9633,8 @@ decodeURI, encodeURI*/ ...@@ -9633,7 +9633,8 @@ decodeURI, encodeURI*/
result = result.substring(index + 7); result = result.substring(index + 7);
index = result.indexOf("\">"); index = result.indexOf("\">");
url = result.substring(0, index); url = result.substring(0, index);
if (url.indexOf(".mp3") === -1) { if (url.indexOf(".webm") !== -1 ||
url.indexOf(".mp4") !== -1) {
name = decodeURI(url); name = decodeURI(url);
rows.push({ rows.push({
"id": url, "id": url,
...@@ -9641,7 +9642,8 @@ decodeURI, encodeURI*/ ...@@ -9641,7 +9642,8 @@ decodeURI, encodeURI*/
"type" : "video/webm"} "type" : "video/webm"}
}); });
result = result.substring(index + 2); result = result.substring(index + 2);
} else { }
if (url.indexOf(".mp3") !== -1) {
name = decodeURI(url); name = decodeURI(url);
rows.push({ rows.push({
"id": url, "id": url,
...@@ -9706,7 +9708,6 @@ decodeURI, encodeURI*/ ...@@ -9706,7 +9708,6 @@ decodeURI, encodeURI*/
} }
pro.then(command.success, command.error, command.notify); pro.then(command.success, command.error, command.notify);
}; };
httpStorage.prototype.put = function (command) { httpStorage.prototype.put = function (command) {
command.success(); command.success();
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment