Skip to content

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Honry committed Nov 14, 2024
1 parent 06e90e4 commit f45c753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ export function getUrlParams() {

export async function isWebNN() {
if (typeof MLGraphBuilder !== 'undefined') {
// Polyfill MLTensorUsage to make it compatible with old version of Chrome.
if (typeof MLTensorUsage == 'undefined') {
// Polyfill MLTensorUsage to make it compatible with old version of Chrome.
window.MLTensorUsage = {WEBGPU_INTEROP: 1, READ: 2, WRITE: 4};
}
return true;
Expand Down

0 comments on commit f45c753

Please sign in to comment.