Skip to content

Commit

Permalink
Merge pull request #32 from Joe12387/fix/allow-import-from-ts-projects
Browse files Browse the repository at this point in the history
Reintroduces module option for npm consumers, and adds a new build step for the ES5 compliant/CDN version of the script
  • Loading branch information
Joe12387 authored Feb 18, 2023
2 parents d23c83b + 2b3d690 commit 53bb1cd
Show file tree
Hide file tree
Showing 16 changed files with 1,549 additions and 236 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
.vscode/
.DS_Store
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ https://detectincognito.com/
Get script from CDN

```html
<script src="https://cdn.jsdelivr.net/gh/Joe12387/detectIncognito@main/detectIncognito.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/Joe12387/detectIncognito@v1.3.0/dist/es5/detectIncognito.min.js"></script>
```

Or install from NPM
Expand Down
193 changes: 0 additions & 193 deletions detectIncognito.js

This file was deleted.

1 change: 0 additions & 1 deletion detectIncognito.min.js

This file was deleted.

5 changes: 2 additions & 3 deletions dist/detectIncognito.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/**
*
* detectIncognito v1.2.0 - (c) 2022 Joe Rutkowski <Joe@dreggle.com> (https://github.com/Joe12387/detectIncognito)
* detectIncognito v1.3.0 - (c) 2022 Joe Rutkowski <Joe@dreggle.com> (https://github.com/Joe12387/detectIncognito)
*
**/
declare const detectIncognito: () => Promise<{
export declare const detectIncognito: () => Promise<{
isPrivate: boolean;
browserName: string;
}>;
//# sourceMappingURL=detectIncognito.d.ts.map
1 change: 0 additions & 1 deletion dist/detectIncognito.d.ts.map

This file was deleted.

10 changes: 6 additions & 4 deletions dist/detectIncognito.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"use strict";
exports.__esModule = true;
exports.detectIncognito = void 0;
/**
*
* detectIncognito v1.2.0 - (c) 2022 Joe Rutkowski <Joe@dreggle.com> (https://github.com/Joe12387/detectIncognito)
* detectIncognito v1.3.0 - (c) 2022 Joe Rutkowski <Joe@dreggle.com> (https://github.com/Joe12387/detectIncognito)
*
**/
var detectIncognito = function () {
Expand All @@ -10,7 +12,7 @@ var detectIncognito = function () {
function __callback(isPrivate) {
resolve({
isPrivate: isPrivate,
browserName: browserName,
browserName: browserName
});
}
function identifyChromium() {
Expand Down Expand Up @@ -62,7 +64,7 @@ var detectIncognito = function () {
var res = (_a = i.target) === null || _a === void 0 ? void 0 : _a.result;
try {
res.createObjectStore("test", {
autoIncrement: true,
autoIncrement: true
}).put(new Blob);
__callback(false);
}
Expand Down Expand Up @@ -191,4 +193,4 @@ var detectIncognito = function () {
main();
});
};
//# sourceMappingURL=detectIncognito.js.map
exports.detectIncognito = detectIncognito;
1 change: 0 additions & 1 deletion dist/detectIncognito.js.map

This file was deleted.

Loading

0 comments on commit 53bb1cd

Please sign in to comment.