Skip to content

Commit

Permalink
Increased the wait time for the theme.
Browse files Browse the repository at this point in the history
  • Loading branch information
gunjandatta committed Nov 15, 2023
1 parent 4bdeceb commit e03309c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/gd-sprest.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/gd-sprest.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gd-sprest",
"version": "7.7.4",
"version": "7.7.5",
"description": "An easy way to develop against the SharePoint REST API.",
"author": "Gunjan Datta <me@dattabase.com> (https://gunjandatta.github.io)",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/helper/methods/getCurrentTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const waitForModernTheme = (): PromiseLike<void> => {
// Return a promise
return new Promise((resolve, reject) => {
let counter = 0;
let maxAttempts = 50;
let maxAttempts = 80;

// See if the modern theme exists
if (window["__themeState__"] != null && window["__themeState__"].theme != null) {
Expand Down
2 changes: 1 addition & 1 deletion src/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IREST } from "../@types";
* SharePoint REST Library
*/
export const $REST: IREST = {
__ver: 7.74,
__ver: 7.75,
AppContext: (siteUrl: string) => { return Lib.Site.getAppContext(siteUrl); },
Apps: Lib.Apps,
ContextInfo: Lib.ContextInfo,
Expand Down

0 comments on commit e03309c

Please sign in to comment.