/* * notion-enhancer: api * (c) 2021 dragonwocky (https://dragonwocky.me/) * (https://notion-enhancer.github.io/) under the MIT license */ 'use strict'; /** * environment-specific methods and constants * @module notion-enhancer/api/env */ /** * the environment/platform name code is currently being executed in * @constant {string} */ export const name = 'extension'; /** * all environments/platforms currently supported by the enhancer * @constant {array} */ export const supported = ['linux', 'win32', 'darwin', 'extension']; /** * the current version of the enhancer * @constant {string} */ export const version = chrome.runtime.getManifest().version; /** open the enhancer's menu */ export const openEnhancerMenu = () => chrome.runtime.sendMessage({ action: 'openEnhancerMenu' }); /** focus an active notion tab */ export const focusNotion = () => chrome.runtime.sendMessage({ action: 'focusNotion' }); /** reload all notion and enhancer menu tabs to apply changes */ export const reloadTabs = () => chrome.runtime.sendMessage({ action: 'reloadTabs' }); /** a notification displayed when the menu is opened for the first time */ export const welcomeNotification = { id: '84e2d49b-c3dc-44b4-a154-cf589676bfa0', color: 'blue', icon: 'message-circle', message: 'Welcome! Come chat with us on Discord.', link: 'https://discord.gg/sFWPXtA', version, };