diff --git a/README.md b/README.md index 85b2675..4b541b1 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Analyzes a webpage and detects **performance** or **front-end code quality** iss
diff --git a/front/src/js/controllers/dashboardCtrl.js b/front/src/js/controllers/dashboardCtrl.js
index b8f2115..76aab21 100644
--- a/front/src/js/controllers/dashboardCtrl.js
+++ b/front/src/js/controllers/dashboardCtrl.js
@@ -41,11 +41,11 @@ dashboardCtrl.controller('DashboardCtrl', ['$scope', '$rootScope', '$routeParams
};
$scope.shareOnTwitter = function(message) {
- openSocialPopup('https://twitter.com/intent/tweet?text=' + encodeURIComponent(message + 'http://yellowlab.tools'));
+ openSocialPopup('https://twitter.com/intent/tweet?text=' + encodeURIComponent(message + 'https://yellowlab.tools'));
};
$scope.shareOnLinkedin = function(message) {
- openSocialPopup('https://www.linkedin.com/shareArticle?mini=true&url=http://yellowlab.tools&title=' + encodeURIComponent(message) + '&summary=' + encodeURIComponent('YellowLabTools is a free online tool that analyzes performance and front-end quality of a webpage.'));
+ openSocialPopup('https://www.linkedin.com/shareArticle?mini=true&url=https://yellowlab.tools&title=' + encodeURIComponent(message) + '&summary=' + encodeURIComponent('YellowLabTools is a free online tool that analyzes performance and front-end quality of a webpage.'));
};
function openSocialPopup(url) {
diff --git a/front/src/js/directives/offendersDirectives.js b/front/src/js/directives/offendersDirectives.js
index f9d747e..434598a 100644
--- a/front/src/js/directives/offendersDirectives.js
+++ b/front/src/js/directives/offendersDirectives.js
@@ -924,4 +924,15 @@
};
});
+ // Proxify an HTTP image to HTTPS if hosted on HTTPS
+ // Uses a great free open-source external service: https://images.weserv.nl
+ offendersDirectives.filter('https', function() {
+ return function(url) {
+ if (url && url.indexOf('http://') === 0 && window.location.protocol === 'https:') {
+ return 'https://images.weserv.nl/?url=' + encodeURIComponent(url.substr(7));
+ }
+ return url;
+ };
+ });
+
})();
diff --git a/front/src/main.html b/front/src/main.html
index fce557d..eec3f07 100644
--- a/front/src/main.html
+++ b/front/src/main.html
@@ -18,10 +18,10 @@
-
-
-
-
+
+
+
+
diff --git a/front/src/views/rule.html b/front/src/views/rule.html
index f011a2a..8238c17 100644
--- a/front/src/views/rule.html
+++ b/front/src/views/rule.html
@@ -133,7 +133,7 @@
Current weight: {{image.original | bytes}}
@@ -364,7 +364,7 @@