From db5baeb1fe00fb171bff770c82fba2d0e1168ef4 Mon Sep 17 00:00:00 2001 From: Jacek Bogdanski Date: Tue, 10 Aug 2021 15:31:34 +0200 Subject: [PATCH] Updated cloud procotol service to always use https. --- plugin.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugin.js b/plugin.js index f8b97ad..445a9d2 100755 --- a/plugin.js +++ b/plugin.js @@ -702,10 +702,7 @@ CKEDITOR.plugins.add('scayt', { } if(typeof editor.config.scayt_srcUrl !== 'string') { - var protocol = document.location.protocol; - protocol = protocol.search(/https?:/) != -1 ? protocol : 'http:'; - - editor.config.scayt_srcUrl = protocol + '//svc.webspellchecker.net/spellcheck31/wscbundle/wscbundle.js'; + editor.config.scayt_srcUrl = 'https://svc.webspellchecker.net/spellcheck31/wscbundle/wscbundle.js'; } if(typeof CKEDITOR.config.scayt_handleCheckDirty !== 'boolean') {