Skip to content

Simple utility to determine if a D2L free range application is loaded in an iframe.

License

Notifications You must be signed in to change notification settings

Brightspace/frau-framed

Repository files navigation

frau-framed

NPM version Build status Coverage Status

Simple utility to determine if a D2L free range application (frau) is loaded in an iframe.

Install

npm install frau-framed --save

Usage

var framed = require('frau-framed');

if (framed()) {
	console.log('I\'m in an iframe!');
}

Contributing

  1. Fork the repository. Committing directly against this repository is highly discouraged.

  2. Make your modifications in a branch, updating and writing new unit tests as necessary in the spec directory.

  3. Ensure that all tests pass with npm test

  4. rebase your changes against master. Do not merge.

  5. Submit a pull request to this repository. Wait for tests to run and someone to chime in.

Code Style

This repository is configured with EditorConfig and ESLint rules.

Versioning and Releasing

This repo is configured to use semantic-release. Commits prefixed with fix: and feat: will trigger patch and minor releases when merged to main.

To learn how to create major releases and release from maintenance branches, refer to the semantic-release GitHub Action documentation.

About

Simple utility to determine if a D2L free range application is loaded in an iframe.

Resources

License

Stars

Watchers

Forks

Packages

No packages published