Back office insecure content warning loading Google Web Fonts when running over HTTPS
Amend to use https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js
This commit is contained in:
@@ -9,7 +9,7 @@ LazyLoad.js([
|
|||||||
'/Umbraco/js/umbraco.security.js',
|
'/Umbraco/js/umbraco.security.js',
|
||||||
'/Umbraco/ServerVariables',
|
'/Umbraco/ServerVariables',
|
||||||
'/Umbraco/lib/spectrum/spectrum.js',
|
'/Umbraco/lib/spectrum/spectrum.js',
|
||||||
'http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js',
|
'https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js',
|
||||||
'/umbraco/js/canvasdesigner.panel.js',
|
'/umbraco/js/canvasdesigner.panel.js',
|
||||||
], function () {
|
], function () {
|
||||||
jQuery(document).ready(function () {
|
jQuery(document).ready(function () {
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ var app = angular.module("Umbraco.canvasdesigner", ['colorpicker', 'ui.slider',
|
|||||||
// TODO: special init for font family picker
|
// TODO: special init for font family picker
|
||||||
if (item.type == "googlefontpicker" && item.values.fontFamily) {
|
if (item.type == "googlefontpicker" && item.values.fontFamily) {
|
||||||
var variant = item.values.fontWeight != "" || item.values.fontStyle != "" ? ":" + item.values.fontWeight + item.values.fontStyle : "";
|
var variant = item.values.fontWeight != "" || item.values.fontStyle != "" ? ":" + item.values.fontWeight + item.values.fontStyle : "";
|
||||||
var gimport = "@import url('http://fonts.googleapis.com/css?family=" + item.values.fontFamily + variant + "');";
|
var gimport = "@import url('https://fonts.googleapis.com/css?family=" + item.values.fontFamily + variant + "');";
|
||||||
if ($.inArray(gimport, parameters) < 0) {
|
if ($.inArray(gimport, parameters) < 0) {
|
||||||
parameters.splice(0, 0, gimport);
|
parameters.splice(0, 0, gimport);
|
||||||
}
|
}
|
||||||
@@ -412,7 +412,7 @@ var app = angular.module("Umbraco.canvasdesigner", ['colorpicker', 'ui.slider',
|
|||||||
var webFontScriptLoaded = false;
|
var webFontScriptLoaded = false;
|
||||||
var loadGoogleFont = function (font) {
|
var loadGoogleFont = function (font) {
|
||||||
if (!webFontScriptLoaded) {
|
if (!webFontScriptLoaded) {
|
||||||
$.getScript('http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js')
|
$.getScript('https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js')
|
||||||
.done(function () {
|
.done(function () {
|
||||||
webFontScriptLoaded = true;
|
webFontScriptLoaded = true;
|
||||||
// Recursively call once webfont script is available.
|
// Recursively call once webfont script is available.
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ var refreshLayout = function (parameters) {
|
|||||||
var webFontScriptLoaded = false;
|
var webFontScriptLoaded = false;
|
||||||
var getFont = function (font) {
|
var getFont = function (font) {
|
||||||
if (!webFontScriptLoaded) {
|
if (!webFontScriptLoaded) {
|
||||||
$.getScript('http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js')
|
$.getScript('https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js')
|
||||||
.done(function () {
|
.done(function () {
|
||||||
webFontScriptLoaded = true;
|
webFontScriptLoaded = true;
|
||||||
// Recursively call once webfont script is available.
|
// Recursively call once webfont script is available.
|
||||||
|
|||||||
Reference in New Issue
Block a user