Skip to content

Commit

Permalink
Odds and ends (#1661)
Browse files Browse the repository at this point in the history
* chore: fix lint warnings
* chore: update README
  • Loading branch information
kswenson authored Nov 27, 2024
1 parent 44a46d8 commit 7fb2e76
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions v3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ Inside of your `package.json` file:

Various developer features can be enabled by adding a `debug` local storage key with one or more of the following flags separated by spaces. Local storage is specific to the domain that CODAP is running on. In Chrome local storage can be edited by opening the developer tools and going to the "Application" tab. Then find "Storage/Local storage" and the domain that CODAP is running on.

- `caseIds` displays the id of each case in the index column of the case table
- `cfmEvents` console log all events received from the CFM
- `cfmLocalStorage` enable the CFM local storage provider so documents can be saved and loaded from the browser's local storage
- `cfmNoAutoSave` disable CFM auto-save for any document loaded by the CFM
Expand Down
2 changes: 1 addition & 1 deletion v3/src/components/tool-shelf/tool-shelf.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ToolShelf } from "./tool-shelf"
import { render, screen } from "@testing-library/react"
import { createCodapDocument } from "../../models/codap/create-codap-document"
import { IDocumentModel } from "../../models/document/document"
import { ITestTileContent, TestTileContent } from "../../test/test-tile-content"
import { TestTileContent } from "../../test/test-tile-content"
import { TileModel } from "../../models/tiles/tile-model"

// way to get a writable reference to libDebug
Expand Down
2 changes: 2 additions & 0 deletions v3/src/lib/handle-cfm-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@ export async function handleCFMEvent(cfmClient: CloudFileManagerClient, event: C
// The message and stack of the error are logged in a group so it is easier
// to view them in the console.
if (isError(e)) {
/* eslint-disable no-console */
console.groupCollapsed("Details of document error")
console.log(e.message)
console.log(e.stack)
console.groupEnd()
/* eslint-enable no-console */
}

// Have the CFM show an error dialog
Expand Down

0 comments on commit 7fb2e76

Please sign in to comment.