Skip to content

Commit

Permalink
v1.3.12 - 修复无法选择种子文件的问题 - Xmader/aria-ng-gui-android#6
Browse files Browse the repository at this point in the history
在 Cordova 中,<input> 的 accept 属性只支持使用合法的 MIME 类型,而不支持使用文件扩展名
为了更好的兼容性,openFileContent 的 fileFilter: ".torrent"应改为 "application/x-bittorrent"
  • Loading branch information
Xmader committed Oct 28, 2019
1 parent f492aec commit 51d906d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"name": "ariang-plus-plus",
"displayName": "AriaNg++",
"description": "适用于 AriaNg GUI 的 AriaNg, 为 AriaNg GUI 加强功能 (基于 AriaNg v1.1.3)",
"version": "1.3.11",
"version": "1.3.12",
"main": "index.html",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/controllers/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
$scope.openTorrent = function () {
ariaNgFileService.openFileContent({
scope: $scope,
fileFilter: '.torrent',
fileFilter: 'application/x-bittorrent',
fileType: 'binary'
}, function (result) {
$scope.context.uploadFile = result;
Expand Down

0 comments on commit 51d906d

Please sign in to comment.