mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-05-11 21:37:40 +08:00
fix(file): initialize writeFile options (#468)
This commit is contained in:
parent
38ff6f2a32
commit
16628a49f7
@ -669,7 +669,7 @@ export class File {
|
|||||||
return Promise.reject(err);
|
return Promise.reject(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
let opts: WriteOptions;
|
let opts: WriteOptions = {};
|
||||||
if (replaceOrOptions) {
|
if (replaceOrOptions) {
|
||||||
if (typeof(replaceOrOptions) === 'boolean') {
|
if (typeof(replaceOrOptions) === 'boolean') {
|
||||||
opts.replace = <boolean>replaceOrOptions;
|
opts.replace = <boolean>replaceOrOptions;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user