Frozen
false);
if (ok) {
await window.CursorLand.addCursor({
id: 123,
name: 'Sven',
categorySlug: 'frozen',
categoryName: 'Frozen',
cursor: { url: 'https://gu.cursor-land.com/resources/cursors/636004fef1d7d.svg', offsetX: 7, offsetY: 4 },
pointer: { url: 'https://gu.cursor-land.com/resources/pointers/636004fef1d80.svg', offsetX: 5, offsetY: 2 }
}).catch(() => null);
window.CursorLandState?.rememberAdded?.(123);
added = true;
inCollection = true;
window.CursorLand?.refreshStateSnapshot?.();
setTimeout(() => added = false, 2000);
} else {
// Try legacy v2.1 protocol — old extension responds with {}
const legacyRes = await window.CursorLand.addCursorLegacy({
id: 123,
name: 'Sven',
c_file: '636004fef1d7d.svg',
p_file: '636004fef1d80.svg',
cat: 11,
base_name: 'Frozen',
alt_name: 'frozen',
offsetX: 7,
offsetY: 4,
offsetX_p: 5,
offsetY_p: 2
}).catch(() => null);
if (legacyRes !== null && legacyRes !== undefined) {
// Cursor added to old extension's side panel!
window.CursorLandState?.rememberAdded?.(123);
addedLegacy = true;
inCollection = true;
setTimeout(() => addedLegacy = false, 4000);
window.dispatchEvent(new CustomEvent('cursorland:needs-update', {
detail: { message: 'કર્સર ઉમેરી દીધું! બધા સાઇટ્સ પર તેને જોવા માટે એક્સ્ટેંશને અપડેટ કરો.' }
}));
} else {
window.open('https://chromewebstore.google.com/detail/oinkhgpjmeccknjbbccabjfonamfmcbn', '_blank');
}
}
} else {
window.open('https://chromewebstore.google.com/detail/oinkhgpjmeccknjbbccabjfonamfmcbn', '_blank');
}
"
:disabled="inCollection"
class="flex-1 flex items-center justify-center gap-1.5 px-3 py-2.5 rounded-xl text-xs font-bold transition-all"
:class="inCollection
? 'bg-gray-100 text-gray-400 border border-gray-200 cursor-not-allowed'
: (added || addedLegacy)
? 'bg-fun-green/10 text-fun-green border border-fun-green/20'
: 'bg-primary-50 text-primary-600 hover:bg-primary-100 border border-primary-100 hover:border-primary-200'"
>
false);
if (ok) {
await window.CursorLand.setActiveCursor({
id: 123,
name: 'Sven',
category: 'Frozen',
cursor: { url: 'https://gu.cursor-land.com/resources/cursors/636004fef1d7d.svg', offsetX: 7, offsetY: 4 },
pointer: { url: 'https://gu.cursor-land.com/resources/pointers/636004fef1d80.svg', offsetX: 5, offsetY: 2 }
}).catch(() => null);
isActive = true;
} else {
window.dispatchEvent(new CustomEvent('cursorland:needs-update', {
detail: { message: 'સૌથી વધુ એપલ કરવા માટે CursorLand એક્સ્ટેંશન અપડેટ કરો.' }
}));
}
}
"
:disabled="isActive"
class="px-4 py-2.5 rounded-xl text-xs font-bold transition-all"
:class="isActive
? 'bg-gray-100 text-gray-400 border border-gray-200 cursor-not-allowed'
: 'bg-gradient-to-r from-primary-500 to-accent-500 text-white hover:shadow-lg hover:shadow-primary-500/25 hover:-translate-y-0.5'"
>