mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-25 00:34:54 +00:00
Fix wrong scope in overrideBackButton
This commit is contained in:
parent
916a46b69b
commit
83f6cc9d1b
@ -165,7 +165,9 @@ exports.moveToForeground = function () {
|
|||||||
* @return [ Void ]
|
* @return [ Void ]
|
||||||
*/
|
*/
|
||||||
exports.overrideBackButton = function () {
|
exports.overrideBackButton = function () {
|
||||||
document.addEventListener('backbutton', this.moveToBackground, false);
|
document.addEventListener('backbutton', function() {
|
||||||
|
exports.moveToBackground();
|
||||||
|
}, false);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user