screenright-client 0.9.10 → 0.9.11
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/package.json
CHANGED
package/src/index.ts
CHANGED
@@ -33,7 +33,7 @@ const errorOccurred = (message: string) => {
|
|
33
33
|
|
34
34
|
export const initializeScreenwright = async (diagramId?: string) => {
|
35
35
|
|
36
|
-
const _diagramId = process.env.SCREENRIGHT_DIAGRAM_ID
|
36
|
+
const _diagramId = diagramId || process.env.SCREENRIGHT_DIAGRAM_ID
|
37
37
|
if (!_diagramId || !deploymentToken) {
|
38
38
|
errorOccurred('Not set require environments.')
|
39
39
|
return
|