Skip to content

Commit

Permalink
Merge pull request #185 from jacekbogdanski/cloud-protocol
Browse files Browse the repository at this point in the history
Updated cloud protocol service to always use https
  • Loading branch information
jalners authored Aug 10, 2021
2 parents 0e3a94a + db5baeb commit fcb8129
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit fcb8129

Please sign in to comment.