mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 02:44:02 +00:00
fix(pinokio): open the app in the system browser (#1222)
Open the Pinokio app in the system browser while retaining application framing protection. Contribution by @NukeThemAII.
This commit is contained in:
1 parent
a15fdd3134
commit
3a724f055a
5 files changed
+18
-4
No files matched your search
@@ -113,6 +113,9 @@ test('Pinokio menu resolves the nested install marker and exposes each lifecycle
|
||||
runtime.url = url;
|
||||
const items = await menu(kernel, info);
|
||||
assert.equal(items.filter((item) => item.default).length, 1);
|
||||
const ready = installed && running === 'start.js' && Boolean(url);
|
||||
assert.equal(items[0].popout, ready ? true : undefined);
|
||||
assert.ok(items.slice(1).every((item) => item.popout === undefined));
|
||||
return items.map(({ text, href, default: isDefault = false }) => ({ text, href, default: isDefault }));
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user