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

Commit 9f8565b

Browse files
author
msrodri
committed
Merge pull request #34 from manifoldjs/v0.1.3
V0.1.3
2 parents 8e5b457 + 1f05fb6 commit 9f8565b

File tree

5 files changed

+24
-20
lines changed

5 files changed

+24
-20
lines changed

assets/windows/wrapper.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/windows/wrapper.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<html>
1+
<html>
22
<head>
33
<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 *">
44
<meta name="format-detection" content="telephone=no">

assets/windows/wrapper.js

+20-16
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
1-
var setupExtendedSplashScreen, updateSplashScreenPositioning,
1+
var setupExtendedSplashScreen, updateSplashScreenPositioning,
22
splashScreen, splashScreenEl, splashScreenImageEl,
3-
isWindows = navigator.appVersion.indexOf("Windows Phone 8.1") === -1;
3+
isWindows = navigator.appVersion.indexOf("Windows Phone") === -1,
4+
isWindowsPhone10 = navigator.appVersion.indexOf("Windows Phone 10") !== -1;
45

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

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

13-
var previousExecutionState = e.detail.previousExecutionState;
14-
var state = Windows.ApplicationModel.Activation.ApplicationExecutionState;
15-
if (previousExecutionState === state.notRunning
16-
|| previousExecutionState === state.terminated
17-
|| previousExecutionState === state.closedByUser) {
18-
setupExtendedSplashScreen();
16+
var previousExecutionState = e.detail.previousExecutionState;
17+
var state = Windows.ApplicationModel.Activation.ApplicationExecutionState;
18+
if (previousExecutionState === state.notRunning
19+
|| previousExecutionState === state.terminated
20+
|| previousExecutionState === state.closedByUser) {
21+
setupExtendedSplashScreen();
22+
}
1923
}
20-
}
21-
}, false);
24+
}, false);
25+
}
2226

2327
setupExtendedSplashScreen = function () {
2428
splashScreenEl = document.getElementById("extendedSplashScreen");

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cordova-plugin-hostedwebapp",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "Hosted Web App Plugin",
55
"cordova": {
66
"id": "cordova-plugin-hostedwebapp",

plugin.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
33
id="cordova-plugin-hostedwebapp"
4-
version="0.1.2">
4+
version="0.1.3">
55
<name>HostedWebApp</name>
66
<description>Hosted Web App Plugin</description>
77
<license>MIT License</license>

0 commit comments

Comments
 (0)