Skip to content

Commit 94b0d3e

Browse files
committed
whattheduck: Catch exception when CapacitorUpdater.current() throws
1 parent fede003 commit 94b0d3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/whattheduck/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ const assignSocket = () => {
9797
};
9898
9999
const updateBundle = async () => {
100-
const currentBundleVersion = (await CapacitorUpdater.current())?.bundle.version;
101100
try {
101+
const currentBundleVersion = (await CapacitorUpdater.current())?.bundle.version;
102102
const bundle = await socket.value!.app.getBundleUrl({ version: currentBundleVersion });
103103
console.info('Latest bundle', bundle);
104104
if (Capacitor.isNativePlatform() && 'url' in bundle && bundle.url) {

0 commit comments

Comments
 (0)