mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
Correct spelling mistakes
This commit is contained in:
@@ -45,7 +45,7 @@ export interface GristAPI {
|
||||
/**
|
||||
* Render the file at `path` into the `target` location in Grist. `path` must be relative to the
|
||||
* root of the plugin's directory and point to an html that is contained within the plugin's
|
||||
* directory. `target` is a predifined location of the Grist UI, it could be `fullscreen` or
|
||||
* directory. `target` is a predefined location of the Grist UI, it could be `fullscreen` or
|
||||
* identifier for an inline target. Grist provides inline target identifiers in certain call
|
||||
* plugins. E.g. ImportSourceAPI.getImportSource is given a target identifier to allow rende UI
|
||||
* inline in the import dialog. Returns the procId which can be used to dispose the view.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Provide a way to acess grist for iframe, web worker (which runs the main safeBrowser script) and
|
||||
// Provide a way to access grist for iframe, web worker (which runs the main safeBrowser script) and
|
||||
// unsafeNode. WebView should work the same way as iframe, grist is exposed just the same way and
|
||||
// necessary api is exposed using preload script. Here we bootstrap from channel capabilities to key
|
||||
// parts of the grist API.
|
||||
@@ -230,7 +230,7 @@ export function onOptions(callback: (options: any, settings: InteractionOptions)
|
||||
*
|
||||
*/
|
||||
export async function addImporter(name: string, path: string, mode: 'fullscreen' | 'inline', options?: RenderOptions) {
|
||||
// checker is omitted for implementation because call was alredy checked by grist.
|
||||
// checker is omitted for implementation because call was already checked by grist.
|
||||
rpc.registerImpl<InternalImportSourceAPI>(name, {
|
||||
async getImportSource(target: RenderTarget): Promise<ImportSource|undefined> {
|
||||
const procId = await api.render(path, mode === 'inline' ? target : 'fullscreen', options);
|
||||
@@ -308,7 +308,7 @@ if (typeof window !== 'undefined') {
|
||||
process.on('disconnect', () => { process.exit(0); });
|
||||
} else {
|
||||
// Not a recognized environment, perhaps plain nodejs run independently of Grist, or tests
|
||||
// running under mocha. For now, we only provide a disfunctional implementation. It allows
|
||||
// running under mocha. For now, we only provide a dysfunctional implementation. It allows
|
||||
// plugins to call methods like registerFunction() without failing, so that plugin code may be
|
||||
// imported, but the methods don't do anything useful.
|
||||
rpc.setSendMessage((data) => { return; });
|
||||
|
||||
Reference in New Issue
Block a user