Skip to content

Commit

Permalink
offline only test
Browse files Browse the repository at this point in the history
  • Loading branch information
miakh committed Jul 30, 2024
1 parent 6957c39 commit 778faa5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/pages/HomePage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ class _HomePageState extends State<HomePage> with WidgetsBindingObserver {
//DataServiceTests.test_has_event_allowed_role();

await loadOfflineData();
return;
await RightsHelper.ensureAccessProcedure(context);

if (DataService.isLoggedIn()) {
Expand Down
4 changes: 3 additions & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@
<meta name="theme-color" content="#ffffff">

<title>Festapp</title>
<script src="https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js" defer></script>
<!-- <script src="https://cdn.onesignal.com/sdks/web/v16/OneSignalSDK.page.js" defer></script>-->
<script>
navigator.serviceWorker.register("(()=>{"use strict";var t={967:(t,i)=>{function o(){return void 0!==window.safari&&void 0!==window.safari.pushNotification}function e(){return"undefined"!=typeof PushSubscriptionOptions&&PushSubscriptionOptions.prototype.hasOwnProperty("applicationServerKey")}Object.defineProperty(i,"__esModule",{value:!0}),i.isIosSafari=i.supportsVapidPush=i.supportsSafariLegacyPush=i.isPushNotificationsSupported=void 0,i.isPushNotificationsSupported=function(){return e()||o()},i.supportsSafariLegacyPush=o,i.supportsVapidPush=e,i.isIosSafari=function(){return"Apple Computer, Inc."===navigator.vendor&&navigator.maxTouchPoints>0}},935:(t,i,o)=>{Object.defineProperty(i,"__esModule",{value:!0}),i.OneSignalShimLoader=void 0;var e=o(967),n=function(){function t(){}return t.addScriptToPage=function(t){var i=document.createElement("script");i.src=t,i.defer=!0,document.head.appendChild(i)},t.getPathAndPrefix=function(){return"https://cdn.onesignal.com/sdks/web/v16/"},t.loadFullPageSDK=function(){t.addScriptToPage("".concat(t.getPathAndPrefix(),"OneSignalSDK.page.es6.js?v=").concat(t.VERSION))},t.start=function(){(0,e.isPushNotificationsSupported)()?t.loadFullPageSDK():this.printEnvironmentNotSupported()},t.printEnvironmentNotSupported=function(){var t="OneSignal: SDK is not compatible with this browser.";(0,e.isIosSafari)()&&(t+=" To support iOS please install as a Web App. See the OneSignal guide https://documentation.onesignal.com/docs/safari-web-push-for-ios"),console.log(t)},t}();i.OneSignalShimLoader=n,n.VERSION=Number(160202)}},i={};function o(e){var n=i[e];if(void 0!==n)return n.exports;var r=i[e]={exports:{}};return t[e](r,r.exports,o),r.exports}o(935).OneSignalShimLoader.start()})();
//# sourceMappingURL=OneSignalSDK.page.js.map");
window.OneSignalDeferred = window.OneSignalDeferred || [];

async function initializeOneSignal(callback, errorCallback) {
Expand Down

0 comments on commit 778faa5

Please sign in to comment.