mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
39_gassistant: open login page in new tab
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@19047 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cc8e0de8be
commit
897a477e16
@ -422,7 +422,7 @@ gassistant_getCMD($)
|
|||||||
chomp( $cmd );
|
chomp( $cmd );
|
||||||
|
|
||||||
if( !$ssh_cmd && !(-X $cmd) ) {
|
if( !$ssh_cmd && !(-X $cmd) ) {
|
||||||
my $msg = "gassistant-fhem not installed. install with 'sudo npm install -g gassistant-fhem'.";
|
my $msg = "gassistant-fhem not installed. install with 'sudo npm install -g gassistant-fhem --unsafe-perm'.";
|
||||||
$msg = "$cmd does not exist" if( $cmd );
|
$msg = "$cmd does not exist" if( $cmd );
|
||||||
return (undef, $msg);
|
return (undef, $msg);
|
||||||
}
|
}
|
||||||
@ -494,7 +494,7 @@ gassistant_Set($$@)
|
|||||||
return "usage: set $name $cmd <url>" if( !@args );
|
return "usage: set $name $cmd <url>" if( !@args );
|
||||||
my $url = $args[0];
|
my $url = $args[0];
|
||||||
|
|
||||||
$url = "<html><a href=\"$url\">Click here to login</a><br></html>";
|
$url = "<html><a href=\"$url\" target=\"_blank\">Click here to login (new window/tab)</a><br></html>";
|
||||||
|
|
||||||
$hash->{".triggerUsed"} = 1;
|
$hash->{".triggerUsed"} = 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user