summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources
diff options
context:
space:
mode:
authordhg@chromium.org <dhg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-09 20:33:36 +0000
committerdhg@chromium.org <dhg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-09 20:33:36 +0000
commit9e8a7f45e1600ae800b259cb62bd50488cc7a714 (patch)
treee1e34b36c0833e0b1e81441229c199bcb8b605c4 /chrome/browser/resources
parentf72ba8458a47568f53153bc4027c7130b6814ef9 (diff)
downloadchromium_src-9e8a7f45e1600ae800b259cb62bd50488cc7a714.zip
chromium_src-9e8a7f45e1600ae800b259cb62bd50488cc7a714.tar.gz
chromium_src-9e8a7f45e1600ae800b259cb62bd50488cc7a714.tar.bz2
Adding support for .txt files.
BUG=chromium-os:3462 TEST=none Review URL: http://codereview.chromium.org/2758004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49310 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r--chrome/browser/resources/media_common.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/resources/media_common.js b/chrome/browser/resources/media_common.js
index 412ccd9..8528809 100644
--- a/chrome/browser/resources/media_common.js
+++ b/chrome/browser/resources/media_common.js
@@ -7,7 +7,7 @@ function pathIsVideoFile(path) {
}
function pathIsAudioFile(path) {
- return /\.(mp3|m4a)$/i.test(path);
+ return /\.(mp3|m4a|wav)$/i.test(path);
}
function pathIsImageFile(path) {
@@ -15,5 +15,5 @@ function pathIsImageFile(path) {
}
function pathIsHtmlFile(path) {
- return /\.(htm|html)$/i.test(path);
+ return /\.(htm|html|txt)$/i.test(path);
}