Merge pull request #57 from KoalaV2/master

Evilportal preview fix.
pull/59/head
Mike Kershaw 2022-10-05 11:23:59 -04:00 committed by GitHub
commit 76469b8f0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 3 deletions

View File

@ -5,6 +5,7 @@
"requires": true,
"packages": {
"": {
"name": "evilportal",
"version": "0.0.0",
"dependencies": {
"@angular/animations": "~9.1.11",

View File

@ -12,7 +12,6 @@
<br/>
<div class="previewContainer">
<iframe class="previewWindow" src="http://172.16.42.1"></iframe>
<iframe id="preview" class="previewWindow"></iframe>
</div>
</div>

View File

@ -16,6 +16,8 @@ export class PreviewDialogComponent implements OnInit {
}
ngOnInit(): void {
let hostnamediv = document.getElementById('preview');
hostnamediv.setAttribute('src', 'http://'+window.location.hostname);
}
}

View File

@ -3,7 +3,7 @@
"title": "Evil Portal",
"description": "An evil captive portal for the WiFi Pineapple.",
"author": "newbi3",
"version": "1.5.1",
"version": "1.5.2",
"firmware_required": "1.0.0",
"devices": ["wifipineapplemk7","wifipineappleent1"]
}