@huawei-ide/codearts 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/index.js +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { EventEmitter } from './util'
|
|
|
3
3
|
const hcOrigin = 'https://res.hc-cdn.com';
|
|
4
4
|
const iframe = document.createElement('iframe');
|
|
5
5
|
iframe.id = 'codeartside';
|
|
6
|
-
iframe.src = hcOrigin + '/codearts-core-web-static/1.0.
|
|
6
|
+
iframe.src = hcOrigin + '/codearts-core-web-static/1.0.18/resources/server/gitcode.html';
|
|
7
7
|
iframe.width = '1px';
|
|
8
8
|
iframe.height = '1px';
|
|
9
9
|
iframe.style.opacity = 0;
|
|
@@ -103,10 +103,10 @@ export function getContent() {
|
|
|
103
103
|
return ideContent();
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
export function
|
|
106
|
+
export function setUserId(domainId, userId) {
|
|
107
107
|
const message = {
|
|
108
|
-
type: '
|
|
109
|
-
data:
|
|
108
|
+
type: 'setUserId',
|
|
109
|
+
data: { domainId, userId }
|
|
110
110
|
};
|
|
111
111
|
postMessage(message);
|
|
112
112
|
}
|