update semantic-tokens-provider-example/sample.js

pull/2563/head
PisecesPeng 4 years ago committed by GitHub
parent c3927326fc
commit dee5461cb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -24,7 +24,7 @@ function getModifier(modifiers) {
if (Array.isArray(modifiers)) {
let nModifiers = 0;
for (let modifier of modifiers) {
nModifier = legend.tokenModifiers.indexOf(modifier);
const nModifier = legend.tokenModifiers.indexOf(modifier);
if (nModifier > -1) {
nModifiers |= (1 << nModifier) >>> 0;
}

Loading…
Cancel
Save