Proxy: Correct structure, and only ever create one splashscreen window.
This commit is contained in:
parent
8aa0b24481
commit
8dc057b796
@ -1,14 +1,16 @@
|
||||
var exec = require('cordova/exec');
|
||||
( function() {
|
||||
|
||||
win = null;
|
||||
|
||||
module.exports = {
|
||||
splashscreen: {
|
||||
win: null,
|
||||
show: function() {
|
||||
if ( win === null ) {
|
||||
win = window.open('splashscreen.html');
|
||||
}
|
||||
},
|
||||
|
||||
show: function() {
|
||||
win= window.open('splashscreen.html');
|
||||
},
|
||||
|
||||
hide: function() {
|
||||
hide: function() {
|
||||
if ( win !== null ) {
|
||||
win.close();
|
||||
win = null;
|
||||
}
|
||||
@ -16,3 +18,5 @@ module.exports = {
|
||||
};
|
||||
|
||||
require("cordova/tizen/commandProxy").add("SplashScreen", module.exports);
|
||||
|
||||
})();
|
||||
|
Loading…
x
Reference in New Issue
Block a user