Skip to content

Commit

Permalink
Merge branch 'master' of github.com:transistorsoft/react-native-backg…
Browse files Browse the repository at this point in the history
…round-fetch
  • Loading branch information
christocracy committed Jun 30, 2021
2 parents eb888f7 + 57f4435 commit fb33f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default class BackgroundFetch {
if (typeof(onTimeout) !== 'function') {
console.warn("[BackgroundFetch] configure: You did not provide a 3rd argument onTimeout callback. This callback is a signal from the OS that your allowed background time is about to expire. Use this callback to finish what you're doing and immediately call BackgroundFetch.finish(taskId)");
onTimeout = (taskId) => {
console.warn('[BackgroundFetch] default onTimeout callback fired. You should provide your own onTimeout callbcak to .configure(options, onEvent, onTimeout)');
console.warn('[BackgroundFetch] default onTimeout callback fired. You should provide your own onTimeout callback to .configure(options, onEvent, onTimeout)');
BackgroundFetch.finish(taskId);
}
}
Expand Down

0 comments on commit fb33f39

Please sign in to comment.