Skip to content

Commit fcb8129

Browse files
authored
Merge pull request #185 from jacekbogdanski/cloud-protocol
Updated cloud protocol service to always use https
2 parents 0e3a94a + db5baeb commit fcb8129

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

plugin.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -702,10 +702,7 @@ CKEDITOR.plugins.add('scayt', {
702702
}
703703

704704
if(typeof editor.config.scayt_srcUrl !== 'string') {
705-
var protocol = document.location.protocol;
706-
protocol = protocol.search(/https?:/) != -1 ? protocol : 'http:';
707-
708-
editor.config.scayt_srcUrl = protocol + '//svc.webspellchecker.net/spellcheck31/wscbundle/wscbundle.js';
705+
editor.config.scayt_srcUrl = 'https://svc.webspellchecker.net/spellcheck31/wscbundle/wscbundle.js';
709706
}
710707

711708
if(typeof CKEDITOR.config.scayt_handleCheckDirty !== 'boolean') {

0 commit comments

Comments
 (0)