Skip to content

Commit a9027b1

Browse files
committed
Fixed URL in j-CloudEditorSimple.
1 parent a9bbcfa commit a9027b1

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

j-CloudEditorSimple/component.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,9 @@ COMPONENT('cloudeditorsimple', 'parent:auto;autosave:500;margin:0;linenumbers:1;
8282
};
8383

8484
self.make = function() {
85-
var protocol = location.protocol;
86-
if (protocol === 'file:')
87-
protocol = 'http:';
8885
if (!config.url)
8986
config.url = (DEF.cdn || 'https://cdn.componentator.com') + '/editor/1.min.html';
90-
self.append('<iframe src="{1}{2}?id={0}" frameborder="0" scrolling="no" allowtransparency="true" allow="geolocation *; microphone *; camera *; midi *; encrypted-media *" style="width:100%;overflow:hidden;display:block"></iframe>'.format(self.ID, protocol, config.url));
87+
self.append('<iframe src="{1}?id={0}" frameborder="0" scrolling="no" allowtransparency="true" allow="geolocation *; microphone *; camera *; midi *; encrypted-media *" style="width:100%;overflow:hidden;display:block"></iframe>'.format(self.ID, protocol, config.url));
9188
iframe = self.find('iframe');
9289
self.resize();
9390
$(W).on('message', onmessage);

j-CloudEditorSimple/component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"datecreated": "2022-03-26T19:55:10.000Z",
3-
"dateupdated": "2025-08-05T08:39:00.000Z",
3+
"dateupdated": "2025-08-05T08:39:01.000Z",
44
"name": "j-CloudEditorSimple",
55
"jcomponent": "19|20",
66
"darkmode": true,

0 commit comments

Comments
 (0)