mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Now loading extension docs in the tips window.
This commit is contained in:
parent
43269ddaf9
commit
158895baf9
1 changed files with 5 additions and 2 deletions
|
@ -346,8 +346,11 @@ public class PaletteBuilder {
|
|||
m.showOnStage(app.stage);
|
||||
}
|
||||
function showAbout():void {
|
||||
// TODO: Currently opens a browser tab, but should navigate to a tip
|
||||
if (ext.url) navigateToURL(new URLRequest(ext.url));
|
||||
// Open in the tips window if the URL starts with /info/ and another tab otherwise
|
||||
if (ext.url) {
|
||||
if (ext.url.indexOf('/info/') === 0) app.showTip(ext.url);
|
||||
else navigateToURL(new URLRequest(ext.url));
|
||||
}
|
||||
}
|
||||
function hideExtension():void {
|
||||
app.extensionManager.setEnabled(ext.name, false);
|
||||
|
|
Loading…
Reference in a new issue