mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-07 22:19:02 +00:00
25 lines
629 B
JavaScript
25 lines
629 B
JavaScript
/*
|
|
* notion-enhancer: api
|
|
* (c) 2021 dragonwocky <thedragonring.bod@gmail.com> (https://dragonwocky.me/)
|
|
* (https://notion-enhancer.github.io/) under the MIT license
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
/**
|
|
* environment-specific methods and constants
|
|
* @module notion-enhancer/api/env
|
|
*/
|
|
|
|
const focusMenu = () => chrome.runtime.sendMessage({ action: 'focusMenu' }),
|
|
focusNotion = () => chrome.runtime.sendMessage({ action: 'focusNotion' }),
|
|
reload = () => chrome.runtime.sendMessage({ action: 'reload' });
|
|
|
|
export default {
|
|
name: 'extension',
|
|
version: chrome.runtime.getManifest().version,
|
|
focusMenu,
|
|
focusNotion,
|
|
reload,
|
|
};
|