248a90023c
Supports closing dialogs in development. Upgrades gas-client to 1.2.0 and uses new API here: Add scriptHostFunctions for google.script.host gas-client#36 Example button to close dialog in Bootstrap sample Updates integration tests
13 lines
427 B
TypeScript
13 lines
427 B
TypeScript
import { GASClient } from 'gas-client';
|
|
import * as publicServerFunctions from '../../server';
|
|
|
|
const { serverFunctions, scriptHostFunctions } = new GASClient<
|
|
typeof publicServerFunctions
|
|
>({
|
|
// this is necessary for local development but will be ignored in production
|
|
allowedDevelopmentDomains: (origin) =>
|
|
/https:\/\/.*\.googleusercontent\.com$/.test(origin),
|
|
});
|
|
|
|
export { serverFunctions, scriptHostFunctions };
|