Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
feat: Use legacy settings, if available
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Jul 18, 2021
1 parent bbf1f47 commit 776f9e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/userscript/source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ import { UserScript } from "./UserScript";
if (!isNil(devSettings)) {
const options = Options.parseLegacyOptions(devSettings);
userScript.injectOptions(options);
} else if (!isNil(legacySettings)) {
const options = Options.parseLegacyOptions(legacySettings);
userScript.injectOptions(options);
}

userScript.run();
Expand Down

0 comments on commit 776f9e8

Please sign in to comment.