Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Commit

Permalink
Merge pull request #34 from manifoldjs/v0.1.3
Browse files Browse the repository at this point in the history
V0.1.3
  • Loading branch information
msrodri committed Jul 24, 2015
2 parents 8e5b457 + 1f05fb6 commit 9f8565b
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 20 deletions.
2 changes: 1 addition & 1 deletion assets/windows/wrapper.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/windows/wrapper.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">
<meta name="format-detection" content="telephone=no">
Expand Down
36 changes: 20 additions & 16 deletions assets/windows/wrapper.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
var setupExtendedSplashScreen, updateSplashScreenPositioning,
var setupExtendedSplashScreen, updateSplashScreenPositioning,
splashScreen, splashScreenEl, splashScreenImageEl,
isWindows = navigator.appVersion.indexOf("Windows Phone 8.1") === -1;
isWindows = navigator.appVersion.indexOf("Windows Phone") === -1,
isWindowsPhone10 = navigator.appVersion.indexOf("Windows Phone 10") !== -1;

WinJS.Application.addEventListener("activated", function (e) {
if (e.detail.kind === Windows.ApplicationModel.Activation.ActivationKind.launch) {
splashScreen = e.detail.splashScreen;
// TODO: Need to fix styling issues whith the extended splash screen for Windows Phone 10 (disabled for now)
if (!isWindowsPhone10) {
WinJS.Application.addEventListener("activated", function (e) {
if (e.detail.kind === Windows.ApplicationModel.Activation.ActivationKind.launch) {
splashScreen = e.detail.splashScreen;

// Listen for window resize events to reposition the extended splash screen image accordingly.
// This is important to ensure that the extended splash screen is formatted properly in response to snapping, unsnapping, rotation, etc...
window.addEventListener("resize", updateSplashPositioning, false);
// Listen for window resize events to reposition the extended splash screen image accordingly.
// This is important to ensure that the extended splash screen is formatted properly in response to snapping, unsnapping, rotation, etc...
window.addEventListener("resize", updateSplashPositioning, false);

var previousExecutionState = e.detail.previousExecutionState;
var state = Windows.ApplicationModel.Activation.ApplicationExecutionState;
if (previousExecutionState === state.notRunning
|| previousExecutionState === state.terminated
|| previousExecutionState === state.closedByUser) {
setupExtendedSplashScreen();
var previousExecutionState = e.detail.previousExecutionState;
var state = Windows.ApplicationModel.Activation.ApplicationExecutionState;
if (previousExecutionState === state.notRunning
|| previousExecutionState === state.terminated
|| previousExecutionState === state.closedByUser) {
setupExtendedSplashScreen();
}
}
}
}, false);
}, false);
}

setupExtendedSplashScreen = function () {
splashScreenEl = document.getElementById("extendedSplashScreen");
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-hostedwebapp",
"version": "0.1.2",
"version": "0.1.3",
"description": "Hosted Web App Plugin",
"cordova": {
"id": "cordova-plugin-hostedwebapp",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
id="cordova-plugin-hostedwebapp"
version="0.1.2">
version="0.1.3">
<name>HostedWebApp</name>
<description>Hosted Web App Plugin</description>
<license>MIT License</license>
Expand Down

0 comments on commit 9f8565b

Please sign in to comment.