update code to add design from main wp page

This commit is contained in:
usmannasir
2025-04-05 00:46:04 +05:00
parent 80c67ac079
commit 87cb7eb65a
3 changed files with 10 additions and 7913 deletions

View File

@@ -384,6 +384,14 @@ app.controller('listWebsites', function ($scope, $http, $window) {
};
$scope.getFullUrl = function(url) {
if (!url) return '';
if (url.startsWith('http://') || url.startsWith('https://')) {
return url;
}
return 'https://' + url;
};
$scope.showWPSites = function(domain) {
var site = $scope.WebSitesList.find(function(site) {
return site.domain === domain;