kopia lustrzana https://github.com/c9/core
open media files with browser previewer
rodzic
3f120b0934
commit
1afb4c6800
|
@ -29,7 +29,7 @@ define(function(require, exports, module) {
|
|||
index: 10,
|
||||
divider: true,
|
||||
selector: function(path) {
|
||||
return /\.(?:html|htm|xhtml|pdf|svg)$|^https?\:\/\//.test(path);
|
||||
return /\.(?:html|htm|xhtml|pdf|svg|mov|mp[34g]|ogg|webm|wma)$|^https?\:\/\//.test(path);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ define(function(require, exports, module) {
|
|||
|
||||
var basename = require("path").basename;
|
||||
|
||||
var extensions = ["pdf", "swf"];
|
||||
var extensions = ["pdf", "swf", "mov", "mp3", "mp4", "mpg", "ogg", "webm", "wma"];
|
||||
|
||||
var previewUrl = options.previewUrl.replace(/^[/]/, function() {
|
||||
return c9.location.replace(/^(\w+:[/]+[^/#?]+).*/, "$1/");
|
||||
|
|
Ładowanie…
Reference in New Issue