open media files with browser previewer

pull/460/head
nightwing 2017-09-28 05:15:14 +04:00
rodzic 3f120b0934
commit 1afb4c6800
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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);
}
});

Wyświetl plik

@ -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/");