mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Use default import if other not found
This commit is contained in:
parent
ef9f90bc36
commit
ba8cdea6b4
@ -99,7 +99,7 @@ export class DerivedVariables {
|
||||
}
|
||||
|
||||
import * as pkg from "off-color";
|
||||
const {offColor} = pkg;
|
||||
const offColor = pkg.offColor ?? pkg.default.offColor;
|
||||
|
||||
export function tests() {
|
||||
return {
|
||||
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
import * as pkg from 'off-color';
|
||||
const offColor = pkg.offColor;
|
||||
const offColor = pkg.offColor ?? pkg.default.offColor;
|
||||
|
||||
export function derive(value, operation, argument, isDark) {
|
||||
const argumentAsNumber = parseInt(argument);
|
||||
|
Loading…
Reference in New Issue
Block a user