Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
8cf3f138
Commit
8cf3f138
authored
Sep 24, 2015
by
Masaru Abe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#17118 FileSystemAPIでエラー
parent
82c717a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletions
+27
-1
abvw/js/contentview_FileSystem.js
+27
-1
No files found.
abvw/js/contentview_FileSystem.js
View file @
8cf3f138
...
@@ -471,7 +471,28 @@ CONTENTVIEW_FILESYSTEM.deleteMovieCache = function(fileName) {
...
@@ -471,7 +471,28 @@ CONTENTVIEW_FILESYSTEM.deleteMovieCache = function(fileName) {
};
};
CONTENTVIEW_FILESYSTEM
.
clearCache
=
function
()
{
if
(
!
CONTENTVIEW_FILESYSTEM
.
fs
)
{
return
;
}
CONTENTVIEW_FILESYSTEM
.
fs
.
root
.
getDirectory
(
'/abook'
,
{},
function
(
dirEntry
)
{
dirEntry
.
removeRecursively
(
function
()
{
//例外時に呼ばれるので以降fs無効化する
CONTENTVIEW_FILESYSTEM
.
fs
=
null
;
},
null
);
},
null
);
};
CONTENTVIEW_FILESYSTEM
.
errorHandler
=
function
(
e
)
{
CONTENTVIEW_FILESYSTEM
.
errorHandler
=
function
(
e
)
{
var
msg
=
''
;
var
msg
=
''
;
...
@@ -492,12 +513,17 @@ CONTENTVIEW_FILESYSTEM.errorHandler = function(e) {
...
@@ -492,12 +513,17 @@ CONTENTVIEW_FILESYSTEM.errorHandler = function(e) {
msg
=
'INVALID_STATE_ERR'
;
msg
=
'INVALID_STATE_ERR'
;
break
;
break
;
default
:
default
:
msg
=
'Unknown Error
'
;
msg
=
'Unknown Error
:'
+
e
.
code
;
break
;
break
;
};
};
//CONTENTVIEW_FILESYSTEM.fs = null;
//CONTENTVIEW_FILESYSTEM.fs = null;
//AVWEB.avwLog('FileSystemAPI Error: ' + msg);
//AVWEB.avwLog('FileSystemAPI Error: ' + msg);
//FileSystemのキャッシュクリア
CONTENTVIEW_FILESYSTEM
.
clearCache
();
alert
(
'FileSystemAPI Error: '
+
msg
);
alert
(
'FileSystemAPI Error: '
+
msg
);
};
};
$
(
function
()
{
$
(
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment