mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-20 01:22:52 +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);
|
||||
}
|
||||
|
||||
let opts: WriteOptions;
|
||||
let opts: WriteOptions = {};
|
||||
if (replaceOrOptions) {
|
||||
if (typeof(replaceOrOptions) === 'boolean') {
|
||||
opts.replace = <boolean>replaceOrOptions;
|
||||
|
Loading…
Reference in New Issue
Block a user