File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 10
10
< script src ="js/main.js "> </ script >
11
11
</ head >
12
12
< body class ="win-type-body ">
13
+ < div >
14
+ < p id ="mainContent " style ="text-align: center; "> </ p >
15
+ </ div >
13
16
</ body >
14
17
</ html >
Original file line number Diff line number Diff line change 8
8
var activation = Windows . ApplicationModel . Activation ;
9
9
var isFirstActivation = true ;
10
10
11
- app . onactivated = function ( args ) {
11
+ app . onactivated = function ( args ) {
12
+ const mainContent = document . getElementById ( "mainContent" ) ;
13
+ mainContent . innerText = "This app should be launched by Signal Private Messenger" ;
12
14
if ( args . detail . kind === activation . ActivationKind . voiceCommand ) {
13
15
// TODO: Handle relevant ActivationKinds. For example, if your app can be started by voice commands,
14
16
// this is a good place to decide whether to populate an input field or choose a different initial view.
34
36
launcherOptions . targetApplicationPackageFamilyName = "2383BenediktRadtke.SignalPrivateMessenger_teak1p7hcx9ga" ;
35
37
const inputData = new Windows . Foundation . Collections . ValueSet ( ) ;
36
38
inputData . insert ( "token" , token ) ;
39
+
37
40
Windows . System . Launcher . launchUriAsync ( new Windows . Foundation . Uri ( newUri ) , launcherOptions , inputData ) . then ( function ( value ) {
38
41
if ( value ) {
39
42
Windows . UI . ViewManagement . ApplicationView . getForCurrentView ( ) . tryConsolidateAsync ( ) ;
43
+ mainContent . innerText = "Successfully passed CAPTCHA token to Signal Private Messenger. If Signal Private Messenger wasn't automatically opened please switch to it." ;
40
44
}
41
45
} ) ;
42
46
}
You can’t perform that action at this time.
0 commit comments