Skip to content

Commit 06eb213

Browse files
authored
Support both 'key' and 'sourceKey' query parameters (#83)
To make it backwards compatible with version <2.0.5
1 parent eff3866 commit 06eb213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const rc = new RestClient({
1313
});
1414

1515
const params = new URLSearchParams(location.search);
16-
const sourceKey = params.get("key") || "key";
16+
const sourceKey = params.get("key") || params.get('sourceKey') || "key";
1717
// 101 is bigger graph, 102 is 5 nodes
1818
const id = params.get("id") || "101";
1919

0 commit comments

Comments
 (0)