Compare commits

..

3 Commits

Author SHA1 Message Date
semantic-release-bot 115faaacd1 chore(release): 0.1.0-develop.32 [skip ci]
# [0.1.0-develop.32](https://git.lumeweb.com/LumeWeb/libkernel/compare/v0.1.0-develop.31...v0.1.0-develop.32) (2023-07-29)

### Bug Fixes

* add missing typeof check ([420a28c](420a28c224))
2023-07-29 20:47:29 +00:00
Derrick Hammer 6f036eae12
Merge remote-tracking branch 'origin/develop' into develop 2023-07-29 16:46:35 -04:00
Derrick Hammer 420a28c224
fix: add missing typeof check 2023-07-29 16:46:28 -04:00
4 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.32](https://git.lumeweb.com/LumeWeb/libkernel/compare/v0.1.0-develop.31...v0.1.0-develop.32) (2023-07-29)
### Bug Fixes
* add missing typeof check ([420a28c](https://git.lumeweb.com/LumeWeb/libkernel/commit/420a28c2246a696d1dea136c599f6b69f116a61f))
# [0.1.0-develop.31](https://git.lumeweb.com/LumeWeb/libkernel/compare/v0.1.0-develop.30...v0.1.0-develop.31) (2023-07-29)

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@lumeweb/libkernel",
"version": "0.1.0-develop.31",
"version": "0.1.0-develop.32",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@lumeweb/libkernel",
"version": "0.1.0-develop.31",
"version": "0.1.0-develop.32",
"dependencies": {
"@lumeweb/libweb": "0.2.0-develop.27",
"emittery": "^1.0.1",

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/libkernel",
"version": "0.1.0-develop.31",
"version": "0.1.0-develop.32",
"main": "lib/index.js",
"type": "module",
"types": "lib/index.d.ts",

View File

@ -32,9 +32,9 @@ declare global {
declare var browser: any;
const IS_EXTENSION_BG = window.location.pathname.includes(
"_generated_background_page.html",
);
const IS_EXTENSION_BG =
typeof window !== "undefined" &&
window.location.pathname.includes("_generated_background_page.html");
const IS_EXTENSION_ENV =
typeof window !== "undefined" && window.browser?.runtime?.id;