User:Opencooper/showKanji-dev.js: Difference between revisions

Content deleted Content added
add
replace whitespace
Line 226:
pnum = properties[prop];
if (response.claims[pnum]) {
&& var kanji = response.claims[pnum][0].mainsnak.datavalue.value.text == wikidataKanji;
if (kanji.replace(/ /g, "") == wikidataKanji.replace(/ /g, "")
&& response.claims[pnum][0].qualifiers
&& response.claims[pnum][0].qualifiers[nameInKana]) {
&& response.claims[pnum][0].qualifiers[nameInKana]) {
kana = response.claims[pnum][0].qualifiers[nameInKana][0].datavalue.value;
break;
}
}
}