Skip to content

Commit

Permalink
[feenkcom/gtoolkit#4072] String key lookups
Browse files Browse the repository at this point in the history
  • Loading branch information
akgrant43 committed Nov 4, 2024
1 parent 111e07d commit 4416c57
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ instance creation
fromDictionary: aDictionary

^(self new)
id: (aDictionary at: #id);
type: (aDictionary at: #type);
title: (aDictionary at: #title);
description: (aDictionary at: #description);
url: (aDictionary at: #url);
webSocketDebuggerUrl: (aDictionary at: #webSocketDebuggerUrl);
devtoolsFrontendUrl: (aDictionary at: #devtoolsFrontendUrl);
id: (aDictionary at: 'id');
type: (aDictionary at: 'type');
title: (aDictionary at: 'title');
description: (aDictionary at: 'description');
url: (aDictionary at: 'url');
webSocketDebuggerUrl: (aDictionary at: 'webSocketDebuggerUrl');
devtoolsFrontendUrl: (aDictionary at: 'devtoolsFrontendUrl');
yourself
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ tabPages

| remotes |
remotes := STON fromString: (ZnEasy get: 'http://localhost:9222/json') contents.
^(remotes select: [ :each | each includesKey: #webSocketDebuggerUrl])
^(remotes select: [ :each | each includesKey: 'webSocketDebuggerUrl'])
collect: [:each | ChromeTabPage fromDictionary: each ].
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
accessing
tabPages

| tabs |

tabs := self class tabPages.
tabs ifEmpty: [ self error: 'Unable to find a debug tab page. Please close the browser and start again' ].
^tabs.

0 comments on commit 4416c57

Please sign in to comment.