and_cesbo

Astra. Custom link for web interface

Jun 20th, 2017
594
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. -- Custom menu item for Astra 5.62 and newer
  2. -- Save this script to /etc/astra/mod/menu.lua
  3. -- app.menu.push - append link to the main menu
  4. -- app.settings.push - append link to the settings menu
  5.  
  6. astra_storage["/mod.js"] = astra_storage["/mod.js"] .. [[
  7. (function() {
  8. "use strict";
  9.  
  10. var Module = {
  11.     label: "Link",
  12.     link: "http://google.com",
  13.     order: 9,
  14. };
  15.  
  16. app.menu.push(Module);
  17. })();
  18. ]]
Advertisement
Add Comment
Please, Sign In to add comment