Skip to content

Commit

Permalink
Update functional-samples/ai.gemini-on-device/sidepanel/index.js
Browse files Browse the repository at this point in the history
Better string comparison

Co-authored-by: Thomas Steiner <[email protected]>
  • Loading branch information
sebastianbenz and tomayac authored Nov 8, 2024
1 parent ea0e2ff commit a98830b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functional-samples/ai.gemini-on-device/sidepanel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async function initDefaults() {
}
const defaults = await chrome.aiOriginTrial.languageModel.capabilities();
console.log('Model default:', defaults);
if (defaults.available != 'readily') {
if (defaults.available !== 'readily') {
showResponse(
`Model not yet available (current state: "${defaults.available}")`
);
Expand Down

0 comments on commit a98830b

Please sign in to comment.